Re: SQL_QUERY_TIMEOUT

From: "Inoue, Hiroshi" <h-inoue(at)dream(dot)email(dot)ne(dot)jp>
To: Ondrej Dzivy Balucha <balucha(at)horizon(dot)sk>
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: SQL_QUERY_TIMEOUT
Date: 2017-05-06 02:59:48
Message-ID: e6c790f4-c3e6-1213-ebf8-90c9a4e56969@dream.email.ne.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

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

In response to

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Hiroshi Saito 2017-05-07 14:37:04 psqlODBC 09.06.0300 Released
Previous Message Ondrej Dzivy Balucha 2017-05-05 13:09:03 SQL_QUERY_TIMEOUT