From: linuxyeti <careless_crusty@yahoo.co.uk>
To: pgsql-odbc@postgresql.org
Subject: session_timeout being set to 30000 bug
Date: Thu, 16 Nov 2017 23:44:01 -0700 (MST)
Message-ID: <1510901041328-0.post@n3.nabble.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: careless_crusty@yahoo.co.uk
Subject: Re: session_timeout being set to 30000 bug
In-Reply-To: <1510901041328-0.post@n3.nabble.com>
References: <1510901041328-0.post@n3.nabble.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox