[unixODBC-support] Postgresql driver and query timeout

Nick Gorham nick.gorham at easysoft.com
Tue Jul 31 07:59:18 BST 2007


Bhagya Prasad wrote:

>Hi,
>I am using unixODBC driver for postgresql driver.  From the
>implementation I found that SQ_QUERY_TIMEOUT is not supported.  Also,
>tested with SQLSetStmtAttr for time out parameter and is not taking
>effect.
>
>//From unixODBC-2.2.12/Drivers/PostgreSQL/options.c
>
>    case SQL_QUERY_TIMEOUT: /* ignored */
>        mylog("SetStmtOption: SQL_QUERY_TIMEOUT, vParam = %d\n", vParam);
>        /*//    "0" returned in SQLGetStmtOption */
>        break;
>
>How to get set query timeout working?  Are there any alternatives.
>  
>
Hi,

You could check in the later driver from the Postgres people, but other 
than that, the only option would be to try and code it yourself.

Sorry.

-- 
Nick



More information about the unixODBC-support mailing list