[Lazarus] Is there a way to reconnect to postgresql if the connection fails?
Michael Van Canneyt
michael at freepascal.org
Wed Aug 24 12:50:03 CEST 2022
On Wed, 24 Aug 2022, Luca Olivetti via lazarus wrote:
> El 17/5/18 a les 9:50, Luca Olivetti via Lazarus ha escrit:
>> El 15/05/18 a les 21:43, Luca Olivetti via Lazarus ha escrit:
>>> El 15/05/18 a les 21:11, Michael Van Canneyt via Lazarus ha escrit:
>>>
>>>> I will need to check this, but the purpose of Close(True) is exactly to
>>>> ignore errors while closing for a reconnect. It was introduced and tested
>>>> in the case of MySQL, but
>>>> normally should work on any database.
>>>>
>>>> Can you please post a small sample program in the bugtracker ?
>>>
>>> Done
>>>
>>> https://bugs.freepascal.org/view.php?id=33737
>
> I added a couple of comments to that bug (that I cannot reopen).
I reopened it. If you can implement a patch that checks forcedClosed for
postgres, I will be glad to check & apply it...
Michael.
More information about the lazarus
mailing list