[Lazarus] Is there a way to reconnect to postgresql if the connection fails?

Luca Olivetti luca at wetron.es
Wed Aug 24 12:27:04 CEST 2022


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).


Bye
-- 
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007


More information about the lazarus mailing list