From 34e80681892fe4a59ddceffd19bfe556d2ae04fc Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Mon, 21 Nov 2016 18:54:07 +0000 Subject: [PATCH] PostgreSQL: query timeout is set in milliseconds, not seconds. See http://www.heidisql.com/forum.php?t=22645 --- source/dbconnection.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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