Search found 50 matches
- 02.10.2024, 14:46
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Improper use of TZCustomElementList?
- Replies: 0
- Views: 52
Improper use of TZCustomElementList?
Hi, Reading the code I found something that I don’t fully understand and I hope someone can clarify it. TZCustomElementList has 2 properties Count and Capacity. Count being the actual number of elements in the list and Capacity being the size of the memory allocated for the list. Capacity must be eq...
- 15.09.2024, 21:43
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: TZAbstractConnection.ConnectionLost issue
- Replies: 2
- Views: 117
Re: TZAbstractConnection.ConnectionLost issue
Thanks, I now understand the interface. connection lost will always raise an exception.
- 14.09.2024, 18:26
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: TZAbstractConnection.ConnectionLost issue
- Replies: 2
- Views: 117
TZAbstractConnection.ConnectionLost issue
In TZAbstractConnection.ConnectionLost the event is never considered to be raised i.e. EventErrorRaised is always False. It should be set under an else statement https://github.com/frones/ZeosLib/blob/3ae28b19e1ee7e7d5326869850097795faffe888/src/component/ZAbstractConnection.pas#L1032 p.s. I think r...
- 11.09.2024, 08:31
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: AbortOperation issue
- Replies: 9
- Views: 231
Re: AbortOperation issue
I would also like to recommend a change of code in TZDbcPooledConnection.AbortOperation , The way it works now is that if it doesn't have a connection it obtain one only to abort it immediately. This is a waste. It should first check whatever the connection IsClosed and if not try to abort it. if it...
- 03.09.2024, 21:58
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: AbortOperation issue
- Replies: 9
- Views: 231
Re: AbortOperation issue
It feels like this was copied form JDBC design where you have checked exceptions, so the user knows to try and catch AbortOperation. But in pascal it makes less sense At least in that regard the sqlite driver behave differently has it doesn't raise any exception. Also in TZAbstractConnection: functi...
- 03.09.2024, 08:21
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: AbortOperation issue
- Replies: 9
- Views: 231
AbortOperation issue
There is a mismatch between the return values from AbortOperation (I refer to the last version I'm using but that seems to be going on for some time https://github.com/frones/ZeosLib/tree/3ae28b19e1ee7e7d5326869850097795faffe888/src) TZSQLiteConnection.AbortOperation always returns 1 TZPostgreSQLCon...
- 27.01.2024, 07:42
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: How to disable statements preparing?
- Replies: 1
- Views: 347
How to disable statements preparing?
Hi, How do I disable the preparing of statements? I tried to remove [doPreferPrepared] from the dataset options but it doesn't help For quickly reproducer example, if I set the SQL to be: select * from files limit 20; select * from files limit 10 I get the error: "SQL Error: ERROR: cannot inser...
- 08.05.2023, 07:07
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Exception when closing application in debug mode
- Replies: 4
- Views: 504
Re: Exception when closing application in debug mode
The old library works perfectly.
I never said it is a zeos problem, it can be the client library problem or lazarus problem too.
I'm looking for ideas on how to debug this.
I never said it is a zeos problem, it can be the client library problem or lazarus problem too.
I'm looking for ideas on how to debug this.
- 04.05.2023, 07:39
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Exception when closing application in debug mode
- Replies: 4
- Views: 504
Exception when closing application in debug mode
I recently upgraded postgresql client library version from V13 to V15. Everything works except when closing the application in *debug* mode I get an expectation "EXTERNAL Access Violation" . I recreated this exception with the most simple application with the latest ZEOS8.0 version (The er...
- 25.04.2023, 07:47
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: TZMemTable suggestions
- Replies: 6
- Views: 566
Re: TZMemTable suggestions
Do you really think there are usecases where data will be interchanged between Zeos applications First, I can easily see this used within the same organization. And not having to write low level parsing routine would be a great usability feature. Also not having such a feature would exclude the use...
- 23.04.2023, 17:02
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: TZMemTable suggestions
- Replies: 6
- Views: 566
Re: TZMemTable suggestions
Hi Jan, The main drawback for implementing it this way is making the file *unportable* between applications. I'm not inventing anything new here, if you take a look at the specifications of the JPEG (exif) file format you will see the UserComment Tag, you can basically store any information along si...
- 22.04.2023, 18:41
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: TZMemTable suggestions
- Replies: 6
- Views: 566
TZMemTable suggestions
I would like to suggest and request 2 changes to TZMemTable that will make it much more useful and future proof 1. Make the first byte of the file a version number of the format, if in future version when the file layout will change it would be much much easier to write a code that supports older ve...
- 22.04.2023, 17:21
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Wrong definitions in ZPlainSqLiteDriver
- Replies: 2
- Views: 359
Re: Wrong definitions in ZPlainSqLiteDriver
I've just seen this message... I missed it...
Yes, the changes looks correct.
Yes, the changes looks correct.
- 21.03.2023, 09:28
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Wrong definitions in ZPlainSqLiteDriver
- Replies: 2
- Views: 359
Wrong definitions in ZPlainSqLiteDriver
There are some wrong definitions in ZPlainSqLiteDriver, nothing big but it affects anyone who will try to work with SQLite directly Current code (as of 2023/1/17) type Tsqlite3_destructor_type = procedure(user: pointer); cdecl; SQLITE_STATIC = procedure(User: Pointer = Nil); cdecl; SQLITE_TRANSIENT ...
- 06.02.2023, 21:22
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Iterate a dataset in multithreaded application
- Replies: 8
- Views: 489
Re: Iterate a dataset in multithreaded application
I would like to thank you both for the suggestions and the time and effort you put into this question.
No easy solution indeed.
No easy solution indeed.