Search found 754 matches
- 20.09.2022, 20:41
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: How to parse ALL table aliases, even if multiple queries are provided
- Replies: 3
- Views: 145
How to parse ALL table aliases, even if multiple queries are provided
Just an fyi, if someone is interested. I wrote a descendant of TZGenericStatementAnalyser which can parse all table aliases, even if multiple SQL commands are provided. For the solution, you can visit this topic on DelphiPraxis , where the reason behind is also explained. @ Jan, If you think it has ...
- 15.09.2022, 15:56
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: TZQuery without TZupdatesql
- Replies: 2
- Views: 128
Re: TZQuery without TZupdatesql
Hello, Of course you can use TZQuery (even for changing field values) but only for simple queries. In case you have a join or such, Zeos will even throw an exception to tell you that it won't work. Only in those cases you need a TZUpdateSQL to tell Zeos how exactly to assemble your INSERT / UPDATE q...
- 09.08.2022, 20:11
- Forum: User Patches
- Topic: Fix for MySQL GetIndexInfo listing all indexes as unique.
- Replies: 14
- Views: 652
Re: Fix for MySQL GetIndexInfo listing all indexes as unique.
The real world test is to call GetIndexInfo on a MySQL table that contains both a primary key and also a non-unique index. You should see the NON-UNIQUE column for the non-unique index = false (which is incorrect.) Strange, even in my own home-cooked application I have plenty of tables like this an...
- 08.08.2022, 19:21
- Forum: User Patches
- Topic: Fix for MySQL GetIndexInfo listing all indexes as unique.
- Replies: 14
- Views: 652
Re: Fix for MySQL GetIndexInfo listing all indexes as unique.
That's odd. I've tested it quite a bit. What do you get if you put this code in that function (at that same line)? Note that the dataset's type for IndexInfoColNonUniqueIndex is a boolean and the existing code tries to set it as a string (and I think the logic of it is incorrect regardless.) Don't ...
- 07.08.2022, 19:33
- Forum: User Patches
- Topic: Fix for MySQL GetIndexInfo listing all indexes as unique.
- Replies: 14
- Views: 652
Re: Fix for MySQL GetIndexInfo listing all indexes as unique.
@ Mark,
How did you get this error? I'm using Zeos with MySQL on a daily basis and never seen it returning everything as unique.
Do you maybe have a test case?
Cheers!
How did you get this error? I'm using Zeos with MySQL on a daily basis and never seen it returning everything as unique.
Do you maybe have a test case?
Cheers!
- 03.08.2022, 06:21
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Change Schema in ZConnection with PostgreSQL
- Replies: 8
- Views: 492
Re: Change Schema in ZConnection with PostgreSQL
I support the second option, especially since MSSQL does this the same way (sending the USE command after login).
- 02.08.2022, 11:23
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Error install in Delphi xe2
- Replies: 6
- Views: 211
Re: Error install in Delphi xe2
Which version? Which package? Any error messages? What steps did you do until you got the error?
None of us has a crystal ball. Please try to be more specific.
None of us has a crystal ball. Please try to be more specific.
- 29.07.2022, 20:44
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Change Schema in ZConnection with PostgreSQL
- Replies: 8
- Views: 492
Re: Change Schema in ZConnection with PostgreSQL
I have 0 experience with PG; however, the above statement looks like an SQL command.
Did you try
?
Did you try
Code: Select all
ZConnection1.ExecuteDirect('set search_path = MySchema');
- 15.07.2022, 06:59
- Forum: ZeosLib 7.2 Forum
- Topic: Multithreaded application best practices
- Replies: 14
- Views: 2634
Re: Multithreaded application best practices
The way I am handling these things is: - Have all components on the VLC form. DB aware components are allowed and working well. - Before any background operation, disconnect all DB aware components from their datasources - Show your "loading" screen - Create and execute a thread which only...
- 12.07.2022, 08:24
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: SQL-Server2019 Win10 21H2
- Replies: 24
- Views: 554
Re: SQL-Server2019 Win10 21H2
Just to be sure - it is the thing over here? https://zeoslib.sourceforge.io/viewtopic.php?f=37&t=152220 Yes, that is the nasty one. Reading the whole thread back makes it funny how much progress was already made compared to the initial state. Anyway, I'll jump out from this thread as I'm being ...
- 09.07.2022, 18:35
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: SQL-Server2019 Win10 21H2
- Replies: 24
- Views: 554
Re: SQL-Server2019 Win10 21H2
Yep. Didn't help :(
- 05.07.2022, 18:38
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: SQL-Server2019 Win10 21H2
- Replies: 24
- Views: 554
Re: SQL-Server2019 Win10 21H2
Can't wait for this to show up in Git. Maybe it fixes my Oracle UTF16 issue as well...
- 02.07.2022, 19:50
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: ZProp_Kerberos vs. ZProp_KRB
- Replies: 1
- Views: 97
ZProp_Kerberos vs. ZProp_KRB
Hello, Today I got a "Duplicates not found" error when I enumerated the existing properties for a specific protocol; the issue was with the property named 'KRB'. I checked it back it pointed me to the two properties above, which are described in ZPropertiesEditor.pas as follows: ZProp_Kerb...
- 08.06.2022, 20:02
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Firebird. Cannot reconnect connection when disconnected by server
- Replies: 23
- Views: 1686
Re: Firebird. Cannot reconnect connection when disconnected by server
A side note for me: For constructing an automated test, it migt make sense to determine the current connection ID using the CURRENT_CONNECTION context variable (see here ) and create a second connection for disconnecting the original connection. This way no user interaction would be required. If yo...
- 02.06.2022, 13:12
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: TZReadOnlyQuery preserves sorting without preserving sorting...?
- Replies: 1
- Views: 84
Re: TZReadOnlyQuery preserves sorting without preserving sorting...?
Please disregard this post. The issue was me, leaving a tiny piece of code somewhere else which manually reset the .SortedFields property.
Zeos is working fine, I just need to sleep more... :(
Zeos is working fine, I just need to sleep more... :(