I think it might be:
Query.Properties.Add('BinaryWireResultMode=false');
to force the character mode data handling. I haven't need to use it though so it would be great to find out the data or type that causes the issue.
-Mark
Search found 211 matches
- 21.05.2024, 18:44
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: problem with postgresql inserts
- Replies: 8
- Views: 196
- 07.05.2024, 18:53
- Forum: Oracle
- Topic: How to connect to Oracle without TnsNames.ora?
- Replies: 9
- Views: 824
Re: How to connect to Oracle without TnsNames.ora?
Looks good to me!
-Mark
-Mark
- 30.04.2024, 21:09
- Forum: Oracle
- Topic: Help with some bugs in UTF8 mode.
- Replies: 3
- Views: 106
Re: Help with some bugs in UTF8 mode.
Found it. In the constructor for TZCodePageConversionStream it checks the size of the stream. The problem is that this is before the TemporaryLob has been created (which happens in "BeforeWrite".) A quick fix is to check for this specific case in the lobsteam's GetSize and return zero. Thi...
- 29.04.2024, 19:12
- Forum: Oracle
- Topic: Help with some bugs in UTF8 mode.
- Replies: 3
- Views: 106
Re: Help with some bugs in UTF8 mode.
I should add that my dev environment is Delphi 11.3 and my Oracle Client is 21.8 with an Oracle 19 server.
-Mark
-Mark
- 29.04.2024, 19:06
- Forum: Oracle
- Topic: Help with some bugs in UTF8 mode.
- Replies: 3
- Views: 106
Re: Help with some bugs in UTF8 mode.
Sample code to show the two bugs: program ZeosOraClobUTF8; {$APPTYPE CONSOLE} {$R *.res} uses System.SysUtils, System.Classes, System.Diagnostics, ZDbcIntfs, ZDbcProperties, ZConnection, ZDataset; var ZConn: TZConnection; ZQuery: TZQuery; TempString: String; i: integer; RecID: Integer; RecAClob: Str...
- 29.04.2024, 19:01
- Forum: Oracle
- Topic: Help with some bugs in UTF8 mode.
- Replies: 3
- Views: 106
Help with some bugs in UTF8 mode.
Hey all! I've been doing some work in the Oracle part of Zeoslib relatd to clobs. I have changes almost ready to show but ran into a couple bugs when testing in UTF8 mode. It was driving me bonkers until I realized that the bugs also exist in the current code and weren't caused by my new stuff. It l...
- 27.04.2024, 11:16
- Forum: User Patches
- Topic: Github repo
- Replies: 2
- Views: 383
Re: Github repo
Hi Jan,
Sorry! I guess I was impatient! All good and thanks as always.
-Mark
Sorry! I guess I was impatient! All good and thanks as always.
-Mark
- 26.04.2024, 21:45
- Forum: User Patches
- Topic: Github repo
- Replies: 2
- Views: 383
Github repo
Hey all,
is the github repo active? It seems to be a few weeks behind. Thanks!
-Mark
is the github repo active? It seems to be a few weeks behind. Thanks!
-Mark
- 22.04.2024, 16:35
- Forum: Oracle
- Topic: Oracle clob performance and CopyLocator
- Replies: 3
- Views: 192
Re: Oracle clob performance and CopyLocator
Update: Lab results... looking good!
- 19.04.2024, 14:33
- Forum: Oracle
- Topic: Oracle clob performance and CopyLocator
- Replies: 3
- Views: 192
Re: Oracle clob performance and CopyLocator
Fascinating! The copy is absolutely needed (at least for now.) Zeos uses the same allocated loblocators for each "rowbatch" fetch. In OnLoad cache mode the loblocators are used directly to fetch the individual row clobs (before they're overwritten by the next "rowbatch" fetch) so...
- 18.04.2024, 18:18
- Forum: Oracle
- Topic: LobCacheMode: OnLoad, OCI 21.7 fails to load CLOBs
- Replies: 13
- Views: 991
Re: LobCacheMode: OnLoad, OCI 21.7 fails to load CLOBs
Revisiting this after my testing related to clob performance. It seems that the combination of UTF8, Zeos' default blob prefetch size (8k), and cachemode of "onLoad" causes an access violation. Setting the prefetch to a size larger than any of your clobs causes empty strings to be returned...
- 18.04.2024, 11:56
- Forum: Oracle
- Topic: Oracle clob performance and CopyLocator
- Replies: 3
- Views: 192
Oracle clob performance and CopyLocator
Hi all, I've been doing some testing on Clobs and found that with cache modes of None or OnAccess that retrieving clobs is three to four times slower than when using OnLoad caching. I managed to gain a little performance by consolidating some of the OCILobGetLength2 calls, but it took a while to fig...
- 10.04.2024, 12:58
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: MySQL Sorting performance - readonly
- Replies: 8
- Views: 832
Re: MySQL Sorting performance - readonly
I've uploaded that test.
I had missed the suggestion to try TZDataSet.Properties.Values[DSProps_UseResult] := 'True'; and adding that fixes the issue for TZReadOnlyQuery and also for TZQuery with ReadOnly := True. With that change the sorts all take about 250ms in my test.
-Mark
I had missed the suggestion to try TZDataSet.Properties.Values[DSProps_UseResult] := 'True'; and adding that fixes the issue for TZReadOnlyQuery and also for TZQuery with ReadOnly := True. With that change the sorts all take about 250ms in my test.
-Mark
- 10.04.2024, 04:03
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: MySQL Sorting performance - readonly
- Replies: 8
- Views: 832
Re: MySQL Sorting performance - readonly
Hi Jan, I've been trying to post a console mode program that shows the issue and I keep getting rejected by the forum security checker. I've been able to do it in the past. They seem to have dialed up the security settings so high that just simple sql statements seem to trigger it. I also can't seem...
- 08.04.2024, 03:33
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: MySQL Sorting performance - readonly
- Replies: 8
- Views: 832
Re: MySQL Sorting performance - readonly
Ok, I'm a smidge slow on testing this! I had abandoned the idea of using TZReadOnlyQuery or setting ReadOnly to true for TZQuery. However, recently while looking at ZMemTable, I revisited this (and found this post) and the issue still seems to exist. Setting DSProps_MinExecCntBeforePrepare to '0' se...