Search found 13 matches
- 08.02.2024, 22:41
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Zeos connection library caching
- Replies: 4
- Views: 476
Re: Zeos connection library caching
As I can not imagine a scenario when switching between cached and non-cached mode is actually needed I suggest to create a conditional directive like ZEOS_DISABLE_DRIVER_CACHE. When defined, I'd not even create the FCachedPlainDrivers instances to save some more resources. What do you guys think ab...
- 29.07.2023, 12:06
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: PostgreSQL AbortOperation - race conditions?
- Replies: 4
- Views: 500
Re: PostgreSQL AbortOperation - race conditions?
You are welcome to fix this :) Will do, and consult it thoroughly with you to the best of my abilities. No - please don't do multi threading in Zeos if it isn't absolutely necessary It is difficult to find another way for doing this. Call to HandleErrorOrWarning() touches almost everything. It will...
- 25.07.2023, 14:27
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: PostgreSQL sslpassword
- Replies: 7
- Views: 576
Re: PostgreSQL sslpassword
Yes, it it redundant.
Note for future readers: Due to merged pull requests, this thread is ready for being locked and archived in my opinion.
Note for future readers: Due to merged pull requests, this thread is ready for being locked and archived in my opinion.
- 17.07.2023, 13:20
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: PostgreSQL AbortOperation - race conditions?
- Replies: 4
- Views: 500
Re: PostgreSQL AbortOperation - race conditions?
In theory this could lead to problems - although these will be very rare ocassions. The more rare the worse. Sorry, thats my opinion. If so it need to be fixed, because it can even lead to AV's, that can not be pinpointed with ease. The critical section could decrease performance if it gets called ...
- 10.07.2023, 11:28
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: PostgreSQL AbortOperation - race conditions?
- Replies: 4
- Views: 500
PostgreSQL AbortOperation - race conditions?
This is continuation of https://zeoslib.sourceforge.io/viewtopic.php?f=10&p=245122. Short recap: if I did not missed something, variables: FLogMessage, FConn are subject to race condition when AbortOperation() is called from another thread. Even if presented analysis of source code is correct, s...
- 09.07.2023, 21:44
- Forum: User Patches
- Topic: PostgreSQL sslpassword
- Replies: 2
- Views: 320
Re: PostgreSQL sslpassword
And another patch related to what i believe is a argument missplacement.
https://github.com/marsupilami79/zeoslib/pull/82
https://github.com/marsupilami79/zeoslib/pull/82
- 09.07.2023, 21:09
- Forum: User Patches
- Topic: PostgreSQL sslpassword
- Replies: 2
- Views: 320
PostgreSQL sslpassword
https://github.com/marsupilami79/zeoslib/pull/81
My first patch. Probably do more when ready. Related to viewtopic.php?f=50&t=181789 thread.
My first patch. Probably do more when ready. Related to viewtopic.php?f=50&t=181789 thread.
- 08.07.2023, 22:07
- Forum: Feature Requests
- Topic: Asynchronous working DataSets?
- Replies: 19
- Views: 2260
Re: Asynchronous working DataSets?
Wow, 2 responces, both from main developers, in such short time. OK, first of all, I do understand & appreciate all that you wrote. Keep in mind I am new to Zeos. And it is my first DB library, that I use without help of other programmers. Lets go 1 by 1: Erm - why is adding classes to a library...
- 07.07.2023, 19:04
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: PostgreSQL sslpassword
- Replies: 7
- Views: 576
Re: PostgreSQL sslpassword
I created patch using diff. File is in the attachment. Source code is taken from:
https://sourceforge.net/p/zeoslib/code- ... 0-patches/
https://sourceforge.net/p/zeoslib/code- ... 0-patches/
- 07.07.2023, 18:15
- Forum: Feature Requests
- Topic: Asynchronous working DataSets?
- Replies: 19
- Views: 2260
Re: Asynchronous working DataSets?
Any async code inside Zeos will add much of complicated code and create classes, that do many things. Clearly, it is not a good design. Have a look at APL in TComponent. Or System.Net.Socket.TSocket. Begin*() all over the code. What for? ZMethodInThread is good enough for start. In this context TZMe...
- 01.06.2023, 14:50
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: The program freezes when the network connection is lost
- Replies: 2
- Views: 340
Re: The program freezes when the network connection is lost
Hello Zeos7.3 PostgreSQL Lazarus 2.0.2 After successful connection, I call any request. If you break the network connection, the program freezes for 15-16 minutes before calling Exception. Please tell me how to manually set the connection timeout? `connect_timeout` parameter should also interest yo...
- 25.05.2023, 19:56
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: PostgreSQL sslpassword
- Replies: 7
- Views: 576
Re: PostgreSQL sslpassword
Hello, Thank you for answer. I planned to add those parameters myself ealier with pull request, but i did not know if you really want to have them inside zeos. I dug thu some code to find place where i think they should be added. Then I looked over subforum, where users add adhoc fixes, but lack of ...
- 04.05.2023, 15:37
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: PostgreSQL sslpassword
- Replies: 7
- Views: 576
PostgreSQL sslpassword
Hello! I am developing an application with ZeosLib version 7.2.14 stable. Now you may say - it is wrong place to wrote the message, but i think it also belongs here. I am using libpq 15 with libssl 3.08 manually compiled under 32-bit visual studio with -MT option. My connection includes ed448 privat...