From: linuxyeti <careless_crusty@yahoo.co.uk>
To: pgsql-odbc@postgresql.org
Subject: BUG: odbc statement_timeout gets set to 30000
Date: Fri, 17 Nov 2017 00:34:41 -0700 (MST)
Message-ID: <1510904081456-0.post@n3.nabble.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
Hi All
I've found a problem with at least the 906 and 1000 odbc driver, in that, no
matter what statement_timeout is set to, after initially connecting and
setting the value to that specified in the connection settings, it is then
subsequently set to 30000.
This means that queries running longer than 30seconds are failing, which is
a major problem. Earlier drivers do not behave in this manner.
I'm not a windows person, however, I have found that
SET statement_timeout = %d
Is present in psqlodbc30a.dll psqlodbc35w.dll, I've used a hex editor to
change the above to read
SET statement_timeout = 0
This works for us, but it would be good for a fixed driver to be published,
I can't see the need for it to be specified in the driver itself, when it
can be passed as a connection setting.
I suspect that %d variable is being overwritten, so, it would be good if
this could be fixed for the next release, either by making sure the
statement_timeout doesn't get overwritten when set in the connection
settings in the driver gui, or windows registry, or, simply remove it from
the driver.
I hope that all 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: BUG: odbc statement_timeout gets set to 30000
In-Reply-To: <1510904081456-0.post@n3.nabble.com>
References: <1510904081456-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