We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce444cb commit 34e8068Copy full SHA for 34e8068
source/dbconnection.pas
@@ -1963,7 +1963,7 @@ procedure TPgConnection.SetActive(Value: Boolean);
1963
FConnectionStarted := GetTickCount div 1000;
1964
Log(lcInfo, f_('Connected. Thread-ID: %d', [ThreadId]));
1965
FIsUnicode := True;
1966
- Query('SET statement_timeout TO '+IntToStr(Parameters.QueryTimeout));
+ Query('SET statement_timeout TO '+IntToStr(Parameters.QueryTimeout*1000));
1967
try
1968
FServerUptime := StrToIntDef(GetVar('SELECT EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - pg_postmaster_start_time())::INTEGER'), -1);
1969
except
0 commit comments