Search found 753 matches

by aehimself
21.01.2024, 17:06
Forum: ZeosLib 7.3/8.0 Forum
Topic: Possible issue with Oracle, 64bit and stBigDecimal
Replies: 7
Views: 479

Re: Possible issue with Oracle, 64bit and stBigDecimal

I know, it was not my intention to hijack the topic. I just got happy as it MIGHT have been the solution to one of mine but yeah, that's not the case. An obfuscated dump was created and "published" and as I promised I DMed you and Jan with the details. The offer for a beer is still valid! ...
by aehimself
20.01.2024, 16:36
Forum: ZeosLib 7.3/8.0 Forum
Topic: Possible issue with Oracle, 64bit and stBigDecimal
Replies: 7
Views: 479

Re: Possible issue with Oracle, 64bit and stBigDecimal

I can confirm that the large dataset + lcmOnLoad issue is 64-bit related too; issue does not appear if I make a 32-bit version of my program. It is NOT ASLR-related though, as the issue pops up ever if ASLR is turned off in linking.

Codepage UTF16 is broken on 32 and 64 bit as well.
by aehimself
18.01.2024, 21:30
Forum: ZeosLib 7.3/8.0 Forum
Topic: Possible issue with Oracle, 64bit and stBigDecimal
Replies: 7
Views: 479

Re: Possible issue with Oracle, 64bit and stBigDecimal

Welcome to the club. Even with the dumps at hand I can not find the source of the "User requested abort of operation" error with string fields if LobCacheMode is onLoad.

There's definetly something wrong with Oracle's buffer size calculation.
by aehimself
09.01.2024, 20:50
Forum: ZeosLib 7.3/8.0 Forum
Topic: [zeos8] Wrong statement does noy triiger an exception when prepare, Why?
Replies: 6
Views: 528

Re: [zeos8] Wrong statement does noy triiger an exception when prepare, Why?

Well, both of us are right. You are right that there might be more to preparation than just setting up internal properties. But, this preparation takes place automatically, somewhere else and not at the Query component. You can verify this; TZQuery.Prepare actually leads you to ZAbstractRODataSet.pa...
by aehimself
05.01.2024, 22:40
Forum: ZeosLib 7.3/8.0 Forum
Topic: [zeos8] Wrong statement does noy triiger an exception when prepare, Why?
Replies: 6
Views: 528

Re: [zeos8] Wrong statement does noy triiger an exception when prepare, Why?

I think preparing a statement is mostly an internal thing. What it does is it basically creates the actual SQL query which will be executed and created the internal statement object. This can be done without talking to the RDBMS system. As far as I know there is no client-side parsing done in Zeos, ...
by aehimself
01.01.2024, 17:16
Forum: User Patches
Topic: I got rid of recent hints and warnings
Replies: 1
Views: 331

I got rid of recent hints and warnings

Hello,

I made some minor changes so Zeos compiles without errors and warnings. Pull request is available on GitHub as usual :)

Happy new year!
by aehimself
15.12.2023, 10:53
Forum: ZeosLib 7.3/8.0 Forum
Topic: How to pass a list of values to an IN operator?
Replies: 1
Views: 272

Re: How to pass a list of values to an IN operator?

Hello and welcome to the forum! As far as I recall I saw array type in parameter values but I'm not sure if any protocols acutally support that. You can give that a try, that would be the best soltuion. What should work however is multiple parameters, like SELECT * FROM MyTable WHERE MyField IN (:pP...
by aehimself
03.12.2023, 18:52
Forum: ZeosLib 7.3/8.0 Forum
Topic: solved: Deadlock with unknown reason
Replies: 3
Views: 341

Re: solved: Deadlock with unknown reason

Hello, I'm not sure how a failed execution can cause a deadlock. Are you sure it's a deadlock, or simply the OnClose event is interrupted by the exception and therefore your form never coses...? I'd also reconsider the way how you are saving the data. If it takes only a second for your queries to ex...
by aehimself
30.11.2023, 22:17
Forum: Oracle
Topic: LobCacheMode: OnLoad, OCI 21.7 fails to load CLOBs
Replies: 13
Views: 996

Re: LobCacheMode: OnLoad, OCI 21.7 fails to load CLOBs

So far all my attempts failed to pinpoint the root cause.

I guess they did change something between version 19 and later as the issue is still present in OCI 21.12.
LobCacheMode: OnLoad throws an instant nullpointer AV (at least in 64 bit) if the resultset has a CLOB field, even in AL32UTF8 codepage.
by aehimself
16.11.2023, 20:05
Forum: ZeosLib 7.3/8.0 Forum
Topic: Solved: Error when compiling Zeos on Delphi 12
Replies: 5
Views: 869

Re: Error when compiling Zeos on Delphi 12

That modification is in the pull request as well. The "ZCompatibility." prefix mefore Max is included if NATIVEINT_WEAK_REFERENCE is defined.
Same had to be done in ZDbcOracleUtils : 1433, ZDbcInterbaseFirebirdMetaData : 2000 and ZAbstractRODataSet : 9417 as well.
by aehimself
13.11.2023, 08:07
Forum: ZeosLib 7.3/8.0 Forum
Topic: Solved: Error when compiling Zeos on Delphi 12
Replies: 5
Views: 869

Re: Error when compiling Zeos on Delphi 12

Long story short, the issue is caused by the weak NativeInt alias introduced in Delphi 12 and the proposed solution is available as a pull request on GitHub :)
by aehimself
12.11.2023, 21:18
Forum: ZeosLib 7.3/8.0 Forum
Topic: Solved: Error when compiling Zeos on Delphi 12
Replies: 5
Views: 869

Re: Error when compiling Zeos on Delphi 12

Hello,

Known issue, a hotfix is already on it's way.

More info here.
by aehimself
13.10.2023, 17:26
Forum: MS SQL Server
Topic: Invalid variant type cast error when inserting a row in mssql server 2012 table with identity column
Replies: 5
Views: 1307

Re: Invalid variant type cast error when inserting a row in mssql server 2012 table with identity column

"INVALID VARIANT TYPE CAST" I think the issue won't be the identity column, but something else. Try to debug on which column it gives this error? We'll also need a table create script and a small program which the issue occurs on. I execute it with Tzquery.execsql and the value is updated...
by aehimself
03.10.2023, 07:57
Forum: ZeosLib 7.2 Forum
Topic: Delphi 2007 ZeosLib 7.2 error identifier FClientCP
Replies: 9
Views: 663

Re: Delphi 2007 ZeosLib 7.2 error identifier FClientCP

If it works with the DCU location but not the source it means you didn't include all sorce folders in the library location: $(ZEOS)\src $(ZEOS)\src\component $(ZEOS)\src\core $(ZEOS)\src\dbc $(ZEOS)\src\parsesql $(ZEOS)\src\plain $(ZEOS)\src\webservice where $(ZEOS) is the root of your local Zeos co...