7.2 testers-thread

The forum for ZeosLib 7.2 Report problems. Ask for help, post proposals for the new version and Zeoslib 7.2 features here. This is a forum that will be edited once the 7.2.x version goes into RC/stable!!

My personal intention for 7.2 is to speed up the internals as optimal a possible for all IDE's. Hope you can help?! Have fun with testing 7.2
Locked
miab3
Zeos Test Team
Zeos Test Team
Posts: 1310
Joined: 11.05.2012, 12:32
Location: Poland

Re: 7.2-alfa testers-thread

Post by miab3 »

@EgonHugeist, @mdaems,

Michael,

Indeed, there is something with spaces in field names(and aliases).

For the table(FB):

Code: Select all

CREATE TABLE A1 
(
  ID                INTEGER  NOT NULL,
  ST                VARCHAR(20),
  "ST 1"              VARCHAR(20),
  ST2               VARCHAR(20),
 CONSTRAINT PK_A1 PRIMARY KEY (ID)
);
such a query can be updated:

Code: Select all

select  ID, ST, "ST 1", ST2 from A1
and for such a:

Code: Select all

select  ID, ST, "ST 1" as ST1, ST2 from A1
field ST1 becomes readonly.

Michal
miab3
Zeos Test Team
Zeos Test Team
Posts: 1310
Joined: 11.05.2012, 12:32
Location: Poland

Re: 7.2-alfa testers-thread

Post by miab3 »

@mdaems, @EgonHugeist,

Zeos7.2-alpha branches_ testing_R3078:
http://svn.code.sf.net/p/zeoslib/code-0 ... sting-7.2/
compiles and runs on (I have tested):

- D2006, (W7-32)
- D2007 -> C++, (W8.1-64)
- DXE2 32/64 -> C++(32), (W7-64)
- Lazarus 32/64(fpc 2.7.1) on Windows7-64(CodeTyphon ver 4.70)
CodeTyphon ver 4.70 rebuilt without a problem. Current LazSqlX 4.0.3.1286-Win-32/64-bit build with success.

Test databases and 32/64-bits clients:
Firebird 2.5.3, MySQL 5.5.35, MariaDB 5.5.34, PostgreSQL 9.3.0, Oracle XE 11.2g, MSSQL 2008 R2 Express(mssql, FreeTDS, ado-sqlncli), *.mdb-ado-Jet.OLEDB.4.0, SQLite 3.7.17.

@Michael,
Is that what you're doing for Oracle somehow useful for Firdbird, PostgreSQL arrays?
Have a look at these names and aliases with a space in Firebird?

Michal
miab3
Zeos Test Team
Zeos Test Team
Posts: 1310
Joined: 11.05.2012, 12:32
Location: Poland

Re: 7.2-alfa testers-thread

Post by miab3 »

@EgonHugeist, @mdaems,

Zeos7.2-alpha branches_ testing_R3083:
http://svn.code.sf.net/p/zeoslib/code-0 ... sting-7.2/
compiles and runs on (I have tested):

- D2006, (W7-32)
- D2007 -> C++, (W8.1-64)
- DXE2 32/64 -> C++(32), (W7-64)
- Lazarus 32/64(fpc 2.7.1) on Windows7-64(CodeTyphon ver 4.70)
CodeTyphon ver 4.70 rebuilt without a problem. Current LazSqlX 4.0.3.1286-Win-32/64-bit build with success.

Test databases and 32/64-bits clients:
Firebird 2.5.3, MySQL 5.5.35, MariaDB 5.5.34, PostgreSQL 9.3.0, Oracle XE 11.2g, MSSQL 2008 R2 Express(mssql, FreeTDS, ado-sqlncli), *.mdb-ado-Jet.OLEDB.4.0, SQLite 3.7.17.

Michal
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Re: 7.2-alfa testers-thread

Post by EgonHugeist »

@miab3
@Michael,
Is that what you're doing for Oracle somehow useful for Firdbird, PostgreSQL arrays?
Have a look at these names and aliases with a space in Firebird?
Nope it isn't. The Array implementation is just the fastest way to insert/delete/update with Oracle and a thing i promissed A. Bouchez of Synopse. I know it provides a loads of source overheap. But i see clearly nice advantages for the DataSet components too.

But actually i've been start playing with the spaced field/alias names.. Weired only MySQL seems to be prepared for this case in all possibilities...
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Re: 7.2-alfa testers-thread

Post by EgonHugeist »

@ALL

some 7.2 ZDBC performance results:

http://blog.synopse.info/post/2013/11/0 ... ing-MS-SQL

As you can see: WE are loads faster than other professional component like UniDac in all tests.
Batch insertiations isn't tested here because we currenty didn't support it. I added first Array DML bindings for Oracle OCI.
Nice to see we can reach or top FireDac performance in some cases too. Let's see how the tests do behave if Array binding is completely implemented..
Some more optimations will follow up. E.g Oracle reading performance. Weired for me: the enormus diff of insertiation speed of FireDac vs. Zeos. That really make me courious! But i'll give my best to get better results.

Stay tuned!
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
miab3
Zeos Test Team
Zeos Test Team
Posts: 1310
Joined: 11.05.2012, 12:32
Location: Poland

Re: 7.2-alfa testers-thread

Post by miab3 »

@Michael,

If it is called "Array DML"(or batch insert), why do you limit it to Oracle if it is possible in Firebird, PostgreSQL and MySQL/MariaDB?
I thought you took for array fields(Oracle, PostgreSQL, Firebird).

Michal
Last edited by miab3 on 02.02.2014, 22:06, edited 2 times in total.
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Re: 7.2-alfa testers-thread

Post by EgonHugeist »

Michal

do you know more about? Some links would be helpfull...
Edit: Did look to http://docwiki.embarcadero.com/RADStudi ... FireDAC%29
so FireBird -> EXECUTE BLOCK looks pretty cool!

MySQL is done by binding a large count of (?,?),(?,?) parameter indication and makes sence with the real-prepareds only, i think.
For postgres, SQLite the same as for MySQL but makes sence in all cases.

Microsoft SQL Server is planned on my side but i can't find an API except for bulk insertiation.

Michal, i'll do my best to get that running for all plains...

And of course i'll check the Array fields of PG, Oracle and FireBird too. But this also means we realy need the TZFields and TZParams, right? I'm affraid this will bring some incompatibility issues we actually didn't had.
And it's a loads af work too.
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
miab3
Zeos Test Team
Zeos Test Team
Posts: 1310
Joined: 11.05.2012, 12:32
Location: Poland

Re: 7.2-alfa testers-thread

Post by miab3 »

@Michael,
Michal, i'll do my best to get that running for all plains...
Now it's already pretty good / fast.

I see that similar things we seen.

And here two a little other:
http://tapoueh.org/blog/2013/03/15-batch-update
http://sgbd.arbinada.com/node/98

Michal
miab3
Zeos Test Team
Zeos Test Team
Posts: 1310
Joined: 11.05.2012, 12:32
Location: Poland

Re: 7.2-alfa testers-thread

Post by miab3 »

@EgonHugeist, @mdaems,

Zeos7.2-alpha branches_ testing_R3088:
http://svn.code.sf.net/p/zeoslib/code-0 ... sting-7.2/
compiles and runs on (I have tested):

- D2006, (W7-32)
- D2007 -> C++, (W8.1-64)
- DXE2 32/64 -> C++(32), (W7-64)
- Lazarus 32/64(fpc 2.7.1) on Windows7-64(CodeTyphon ver 4.70)
CodeTyphon ver 4.70 rebuilt without a problem. LazSqlX 4.0.3.1286-Win-32/64-bit build with success.

Test databases and 32/64-bits clients:
Firebird 2.5.3, MySQL 5.5.35, MariaDB 5.5.34, PostgreSQL 9.3.0, Oracle XE 11.2g, MSSQL 2008 R2 Express(mssql, FreeTDS, ado-sqlncli), *.mdb-ado-Jet.OLEDB.4.0, SQLite 3.7.17.

Are disclosed the problem with the names and aliases of fields with a space (in Query).

Michal
miab3
Zeos Test Team
Zeos Test Team
Posts: 1310
Joined: 11.05.2012, 12:32
Location: Poland

Re: 7.2-alfa testers-thread

Post by miab3 »

@EgonHugeist,

Michael,
R3089 in the Firebird worked:

Code: Select all

select  ID, ST, "ST 1", "ST 1" as "ST 11", "ST 1" as ST1,  ST2 as "ST 2"  from A1
updates without problems.

Michal
Last edited by miab3 on 04.02.2014, 10:46, edited 1 time in total.
miab3
Zeos Test Team
Zeos Test Team
Posts: 1310
Joined: 11.05.2012, 12:32
Location: Poland

Re: 7.2-alfa testers-thread

Post by miab3 »

@EgonHugeist, @mdaems,

Zeos7.2-alpha branches_ testing_r3090:
http://svn.code.sf.net/p/zeoslib/code-0 ... sting-7.2/
compiles and runs on (I have tested):

- D2006, (W7-32)
- D2007 -> C++, (W8.1-64)
- DXE2 32/64 -> C++(32), (W7-64)
- Lazarus 32/64(fpc 2.7.1) on Windows7-64(CodeTyphon ver 4.70)
CodeTyphon ver 4.70 rebuilt without a problem. LazSqlX 4.0.3.1286-Win-32/64-bit build with success.

Test databases and 32/64-bits clients:
Firebird 2.5.3, MySQL 5.5.35, MariaDB 5.5.34, PostgreSQL 9.3.0, Oracle XE 11.2g, MSSQL 2008 R2 Express(mssql, FreeTDS, ado-sqlncli), *.mdb-ado-Jet.OLEDB.4.0, SQLite 3.7.17.

Problem with the names and aliases of fields with a space (in Query) for Firebird removed.
For some other bases (PostgreSQL, SQLite) could remain.


Michal
miab3
Zeos Test Team
Zeos Test Team
Posts: 1310
Joined: 11.05.2012, 12:32
Location: Poland

Re: 7.2-alfa testers-thread

Post by miab3 »

@EgonHugeist, @mdaems,

Zeos7.2-alpha branches_ testing_r3093:
http://svn.code.sf.net/p/zeoslib/code-0 ... sting-7.2/
compiles and runs on (I have tested):

- D2006, (W7-32)
- D2007 -> C++, (W8.1-64)
- DXE2 32/64 -> C++(32), (W7-64)
- Lazarus 32/64(fpc 2.7.1) on Windows7-64(CodeTyphon ver 4.70)
CodeTyphon ver 4.70 rebuilt without a problem. LazSqlX 4.0.3.1286-Win-32/64-bit build with success.

Test databases and 32/64-bits clients:
Firebird 2.5.3, MySQL 5.5.35, MariaDB 5.5.34, PostgreSQL 9.3.0, Oracle XE 11.2g, MSSQL 2008 R2 Express(mssql, FreeTDS, ado-sqlncli), *.mdb-ado-Jet.OLEDB.4.0, SQLite 3.7.17.

Michal
miab3
Zeos Test Team
Zeos Test Team
Posts: 1310
Joined: 11.05.2012, 12:32
Location: Poland

Re: 7.2-alfa testers-thread

Post by miab3 »

@EgonHugeist, @mdaems,

Zeos7.2-alpha branches_ testing_r3099:
http://svn.code.sf.net/p/zeoslib/code-0 ... sting-7.2/
compiles and runs on (I have tested):

- Add: D7 on Windows XP Mode (on W7-32),
- D2006, (W7-32)
- D2007 -> C++, (W8.1-64)
- DXE2 32/64 -> C++(32), (W7-64)
- Lazarus 32/64(fpc 2.7.1) on Windows7-64(CodeTyphon ver 4.70)
CodeTyphon ver 4.70 rebuilt without a problem. LazSqlX 4.0.3.1286-Win-32/64-bit build with success.

Test databases and 32/64-bits clients:
Firebird 2.5.3, MySQL 5.5.35, MariaDB 5.5.34, PostgreSQL 9.3.0, Oracle XE 11.2g, MSSQL 2008 R2 Express(mssql, FreeTDS, ado-sqlncli), *.mdb-ado-Jet.OLEDB.4.0, SQLite 3.7.17.

Add:
As there are problems with *.dpk in DXE3-DXE5, I include an attachment with *.dpk to DXE2 which I use.
For other versions need to be corrected {$LIBSUFFIX '160 '}
Zeos72a_DPK_XE2.zip
Michal
You do not have the required permissions to view the files attached to this post.
Last edited by miab3 on 06.02.2014, 16:22, edited 1 time in total.
miab3
Zeos Test Team
Zeos Test Team
Posts: 1310
Joined: 11.05.2012, 12:32
Location: Poland

Re: 7.2-alfa testers-thread

Post by miab3 »

@EgonHugeist, @mdaems,

Michael,
ZEOS 7.2a-r3099
Can you:
1. Make public:

Code: Select all

GetExplicitTransactionCounter function: integer;  // M.A. 

TZAbstractConnection.GetExplicitTransactionCounter function: integer;  // M.A. 
begin    
Result: = FExplicitTransactionCounter; 
end; 
in ZAbstractConnection.pas.
Sometimes it is useful for me.

2 Correct ZAbstractRODataset.pas:
http://zeoslib.sourceforge.net/viewtopi ... 886#p25772
to avoid errors in C++ DXE5.

3. Maybe add my (unloved) dpk with appropriate correction {$LIBSUFFIX '160'} to DXE2-DXE5 (attached).
Until someone do it better.
And maybe this pack attached to D7:
zeos72a_pack_d7.zip
Zeos72a_DPK_XE2.zip
Michal
You do not have the required permissions to view the files attached to this post.
Last edited by miab3 on 13.02.2014, 11:31, edited 3 times in total.
miab3
Zeos Test Team
Zeos Test Team
Posts: 1310
Joined: 11.05.2012, 12:32
Location: Poland

Re: 7.2-alfa testers-thread

Post by miab3 »

@EgonHugeist, @mdaems,

Continuing the(ZEOS 7.2a-r3099):
4. Applies to Ticket #62:

http://www.firebirdsql.org/refdocs/lang ... words.html
and
New Reserved Words in Firebird 3.0
DETERMINISTIC
OVER
RETURN
SCROLL
SQLSTATE

5. Applies to Ticket #63:

In ZEOS 7.2a_r3099 also occurs.
For two similar tables in FB database ZAPISY and ZAPI__(<--two underscores) always updated is ZAPISY.

Michal
Last edited by miab3 on 24.02.2014, 00:32, edited 4 times in total.
Locked