diff --git a/source/dbconnection.pas b/source/dbconnection.pas index 5410a31b..6a00e70b 100644 --- a/source/dbconnection.pas +++ b/source/dbconnection.pas @@ -1963,7 +1963,7 @@ begin FConnectionStarted := GetTickCount div 1000; Log(lcInfo, f_('Connected. Thread-ID: %d', [ThreadId])); FIsUnicode := True; - Query('SET statement_timeout TO '+IntToStr(Parameters.QueryTimeout)); + Query('SET statement_timeout TO '+IntToStr(Parameters.QueryTimeout*1000)); try FServerUptime := StrToIntDef(GetVar('SELECT EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - pg_postmaster_start_time())::INTEGER'), -1); except