Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFaO7-00020W-A0 for pgsql-odbc@arkaria.postgresql.org; Fri, 17 Nov 2017 06:44:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eFaO6-0002Lv-PT for pgsql-odbc@arkaria.postgresql.org; Fri, 17 Nov 2017 06:44:30 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eFaNh-0001bp-Gc for pgsql-odbc@postgresql.org; Fri, 17 Nov 2017 06:44:05 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eFaNe-0003eU-Ge for pgsql-odbc@postgresql.org; Fri, 17 Nov 2017 06:44:04 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 50FFD97ADC8B for ; Thu, 16 Nov 2017 23:44:01 -0700 (MST) Date: Thu, 16 Nov 2017 23:44:01 -0700 (MST) From: linuxyeti To: pgsql-odbc@postgresql.org Message-ID: <1510901041328-0.post@n3.nabble.com> Subject: session_timeout being set to 30000 bug MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org Hi All OK,I've been trying out the later odbc drivers, 906 and 1000. However there is 1 issue, in that even if in the connection settings I set session_timeout=any random number from 0 onwards, on intial connection it works fine, however, after connection for no apparent reason, it is being set to 30000. The result that long running queries, that would work with statement_timeout set to 0, are failing because the statement_timeout is being set to 30000. I'm not a windows person, however, I have found that psqlodbc30a.dll and psqlodbc35w.dll contain the property .. SET statement_timeout = %d I used a hex editor to change this to read .. SET statement_timeout = 0 And now the issue is resolved. I suspect that %d must be getting set to a different value at some stage, and is overwriting the value as picked up when the connection settings options box in filled in on the gui, or in the windows registry. Whilst I have found a way to make it work for us, it would be better if a fixed release could be made available. Perhaps even take the piece of code where set statment_timeout = %d out altogether? I hope all that makes sense Thanks tony -- Sent from: http://www.postgresql-archive.org/PostgreSQL-odbc-f2186591.html -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc