From: Ondrej Dzivy Balucha <balucha@horizon.sk>
To: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
Cc: pgsql-odbc@postgresql.org
Subject: Re: SQL_QUERY_TIMEOUT
Date: Tue, 09 May 2017 11:13:27 +0200
Message-ID: <e369ae82-1656-e316-5ad2-2fdea050e5c0@horizon.sk> (raw)
In-Reply-To: <e6c790f4-c3e6-1213-ebf8-90c9a4e56969@dream.email.ne.jp>
References: <ab7f4da6-587a-7409-93a2-b4584751eb99@horizon.sk>
<e6c790f4-c3e6-1213-ebf8-90c9a4e56969@dream.email.ne.jp>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
Hi,
This is only way to use SQL_QUERY_TIMEOUT?
Can I setup this in odbc.ini like global parameter for all my
connections (applications)?
It can be useful to independently check/break (outside application -
when using third-party applications ) dead connection or unexpected long
running query or other communication error.
Other databases(ODBC clients) has parameter to set up this in config file.
For example DB2 ODBC client has parameter ReceiveTimeout where I can
setup how many second client wait for response from server. After this
timeout client return communication error. This is great parameter for
situation when I use third-party applications, for example.
Regards
Ondrej Dzivy Balucha
Horizon, s.r.o. Prešov
Francisciho 21
08001 Prešov
tel/fax +421517491400/02
On 06.05.2017 04:59, Inoue, Hiroshi wrote:
> Hi Ondrej,
>
> On 2017/05/05 22:09, Ondrej Dzivy Balucha wrote:
>> Hi,
>>
>> I found that in psqlODBC 09.05.0300 Release was implemented
>> SQL_QUERY_TIMEOUT.
>> How it works?
>
> Please call ODBC API like
>
> SQLSetStmtAttr(hstmt, SQL_ATTR_QUERY_TIMEOUT, (void *) timeout, 0);
>
> regards,
> Hiroshi Inoue
>
>> I need to set up odbc connection in Debian, that send me
>> error(disconnet dead connection) after defined time, but I can`t find
>> how can I setup SQL_QUERY_TIMEOUT in odbc.ini.
>> I have installed latest odbc driver(09.06.0200)
>>
>> Regards
>
--
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: balucha@horizon.sk, h-inoue@dream.email.ne.jp
Subject: Re: SQL_QUERY_TIMEOUT
In-Reply-To: <e369ae82-1656-e316-5ad2-2fdea050e5c0@horizon.sk>
References: <ab7f4da6-587a-7409-93a2-b4584751eb99@horizon.sk> <e6c790f4-c3e6-1213-ebf8-90c9a4e56969@dream.email.ne.jp> <e369ae82-1656-e316-5ad2-2fdea050e5c0@horizon.sk>
* 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