Hello MaksymK & welcome to the forum.
Thanks for reporting and the nice test. I was able to resolve your testcase. See https://sourceforge.net/p/zeoslib/tickets/467.
So please update from Trunk and report your findings.
Search found 1934 matches
- 17.12.2020, 06:54
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Same parameter more than once in a query
- Replies: 2
- Views: 189
- 17.12.2020, 06:52
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: New TZParam/TZParams enabled
- Replies: 15
- Views: 1630
Re: New TZParam/TZParams enabled
@aehimself of course vtNull variant represents SQL NULL. But there are driver differences: you use the Old FreeTDS DBLIB API and MySQL. For FreeTDS we still send composed SQL-strings instead of native ParamData. For MySQL we do the same in Non-prepared mode(this may change for MariaDB in future -> m...
- 16.12.2020, 07:29
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: New TZParam/TZParams enabled
- Replies: 15
- Views: 1630
Re: New TZParam/TZParams enabled
IMO all parameters need to be typed. You can achieve a "typed" param by setting the type. Example: TZParam(MyParam).SQLType := stBoolean or MyParam.DataType := ftBoolean; If a param is untyped then the first assignment like your ZQuery.ParamByName('pDateTimeNow').AsDateTime := Now; sets th...
- 14.12.2020, 07:11
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Underscoring the underscore :)
- Replies: 11
- Views: 414
Re: Underscoring the underscore :)
@Jan seems correct. I just thought about SQL Server: https://docs.microsoft.com/en-us/sql/t-sql/language-elements/like-transact-sql?redirectedfrom=MSDN&view=sql-server-ver15 Escape: [_] or [%] this syntax is known on any Sybase too. But if a server does'nt support it.. We need the escape syntax,...
- 11.12.2020, 23:16
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Underscoring the underscore :)
- Replies: 11
- Views: 414
Re: Underscoring the underscore :)
Don't make it so complicated. It's just dblib which uses this syntax. Use StripEscape instead and test with HasNoWildCards if a like or equal search needs to be made...
- 11.12.2020, 06:48
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Moving ZPropertyArray to a separate unit?
- Replies: 7
- Views: 319
Re: Moving ZPropertyArray to a separate unit?
Hi, I am trying to enumerate all the useable properties with a program from ZPropertiesEditor. Sound dangerous to me. The properties (yet) are not complete or some may be omitted. Example: Yesterday morning i discovered the method: IZStatement.SetQueryTimeout. Yet u use the query-timeouts as paramet...
- 09.12.2020, 17:54
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Performance issue using ADO.
- Replies: 13
- Views: 674
Re: Performance issue using ADO.
Erm - I disagree. As long as there is no Exception to be transported HResult will be S_OK and so @CheckAutoResult doesn't get called. So in a usual use case, there is a maximum of one more integer comparision combined with a jump. For me this hardly is a performance penalty. I seem to remember that...
- 09.12.2020, 17:02
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: MySQl Metadata consistency
- Replies: 13
- Views: 317
Re: MySQl Metadata consistency
@Mark,
do it -> #2. Why i was voting for #1 because of keeping backward compatibility for users who are using the TZSQLMetadata components. Now we're on Beta 8, so i've no objection if we go this route!
@Jan please document it..
do it -> #2. Why i was voting for #1 because of keeping backward compatibility for users who are using the TZSQLMetadata components. Now we're on Beta 8, so i've no objection if we go this route!
@Jan please document it..
- 08.12.2020, 18:11
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: New TZParam/TZParams enabled
- Replies: 15
- Views: 1630
Re: New TZParam/TZParams enabled
Thanks for confirmation. Note: If YOU did'nt change anything in your code which may produce a leak, usually the problem is part of an update. I do my best to finalize Zeos8 but as you know: changing a line (in your case 6.000) sometimes an mistake is shipped whith. Only if i and others would stop th...
- 08.12.2020, 18:00
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Improving Time Fields fractional seconds display
- Replies: 3
- Views: 238
Re: Improving Time Fields fractional seconds display
Mark, the question is correct. Thoughts: if the format has a fraction indicator(ie. '.'/dot) then the fractions should be displayed as: if the fraction part is shorter than the left fractional part the minimal fractions should be displayed. Example: Format is: "....HH:NN:SS.F/Z" and NanoFr...
- 08.12.2020, 17:41
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: MySQl Metadata consistency
- Replies: 13
- Views: 317
Re: MySQl Metadata consistency
@Mark, do you know this: https://dev.mysql.com/worklog/task/?id=942 means it's technicaly possible MySQL will change the "SCHEMA"/"CATALOG" purpose. There are more than 1 ticket for the MySQL interpretion of what a schema is... #1: Return "database" in CATALOG and nothi...
- 04.12.2020, 17:10
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: New TZParam/TZParams enabled
- Replies: 15
- Views: 1630
Re: New TZParam/TZParams enabled
@aehimself,
it was my fault. Initializing a Variant for a function result using FillChar() did produce the leaks. Using VarClear() instead did fix it. Can you confirm it? Also did i shorten the code by 1000 lines.
it was my fault. Initializing a Variant for a function result using FillChar() did produce the leaks. Using VarClear() instead did fix it. Can you confirm it? Also did i shorten the code by 1000 lines.
- 04.12.2020, 05:31
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: New TZParam/TZParams enabled
- Replies: 15
- Views: 1630
Re: New TZParam/TZParams enabled
There is a significant difference in how these are handling their values and TZParam sometimes leaks a UnicodeString in my application. Hmm my tests passing fine without memoryleaks. he solution would be to change the COMPLETE way I'm saving parameter values or to roll back to standard TParams... G...
- 03.12.2020, 13:01
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: New TZParam/TZParams enabled
- Replies: 15
- Views: 1630
Re: New TZParam/TZParams enabled
I don't have a XE10.4.
Can you list/publish all warnings please?
Can you list/publish all warnings please?
- 03.12.2020, 07:08
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: New TZParam/TZParams enabled
- Replies: 15
- Views: 1630
New TZParam/TZParams enabled
Hello, i added the new TZParam component and it TZParams collection. This is done to make my promisse true, that the z8-Series should also support Array BATCH-DML bindings and Component-Layer, which is suported by DBC since years. The TZParam offers all native types Zeos supports, and doesn't care a...