Fixed :)
Pull request available on GitHub.
Search found 775 matches
- 26.10.2022, 10:34
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: ZMemTable ignoring required fields
- Replies: 7
- Views: 320
- 25.09.2022, 09:08
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Version ZEOS for Delphi Alexandria
- Replies: 1
- Views: 341
Re: Version ZEOS for Delphi Alexandria
The latest Zeos8 from SVN or Git works just fine.
If you prefer, you also can try to install 7.2 as well with the latest package available; it might work.
If you prefer, you also can try to install 7.2 as well with the latest package available; it might work.
- 22.09.2022, 08:40
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Writing Blobs from Streams Failing in SQLite... SOMETIMES...
- Replies: 17
- Views: 947
Re: Writing Blobs from Streams Failing in SQLite... SOMETIMES...
OMG, this is the most paranoid code I've ever seen... "World state" suggests we are talking about a game engine. Imagine the lag 1,2 sec of saving world state will generate :) Tbh I don't see the reason of this check either. I'd only do safeguards if actual corruption happened once but co...
- 21.09.2022, 18:20
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Writing Blobs from Streams Failing in SQLite... SOMETIMES...
- Replies: 17
- Views: 947
Re: Writing Blobs from Streams Failing in SQLite... SOMETIMES...
This by itself won't do much. - Save the original data to the disk, save the contents of blob field to the disk. Compare the differences. - After saving your blob, post the dataset and read it to a different stream. Save both streams to the disk and compare differences. My guess is your data is safe...
- 21.09.2022, 18:12
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: How to parse ALL table aliases, even if multiple queries are provided
- Replies: 3
- Views: 185
Re: How to parse ALL table aliases, even if multiple queries are provided
Fresh, ripe pull request available for picking! :)
- 20.09.2022, 20:47
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Help translating some subclassed functions from V7.2x to V8
- Replies: 3
- Views: 134
Re: Help translating some subclassed functions from V7.2x to V8
You'll need something like TZGenericStatementAnalyser and DefineSelectSchemaFromQuery but instead of SELECT and FROM, you'll have to search to DELETE FROM, INSERT INTO and UPDATE SET. Most probably you'll end up with a class helper / derived analyzer. I just wrote one for myself, that's why I know ...
- 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: 185
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: 160
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: 790
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: 790
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: 790
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: 602
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: 259
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: 602
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: 2872
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...