PostgreSQL: query timeout is set in milliseconds, not seconds. See http://www.heidisql.com/forum.php?t=22645

This commit is contained in:
Ansgar Becker
2016-11-21 18:54:07 +00:00
parent ce444cbfe4
commit 34e8068189

View File

@@ -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