[Lazarus] MariaDB gone away after long inactivities

Michael Van Canneyt michael at freepascal.org
Tue Aug 18 12:26:05 CEST 2015



On Tue, 18 Aug 2015, Eric Kom wrote:

>
>
> On 2015/08/18 08:06 AM, Aradeonas wrote:
>> I don't know much about disconnecting problem but I know you dont need
>> to set transaction every time ,just this line work for others
>> automatically :
>> SQLConnection1.Transaction:=SQLTransaction1;
> So if I understand, for good practice I must not have many TSQLTransaction? 
> Even if I got many TSQLQuery

Yes. 1 transaction should be enough for most cases.

Michael.




More information about the Lazarus mailing list