[unixODBC-support] Query timeout

Nick Gorham nick.gorham at easysoft.com
Wed Mar 21 17:42:14 GMT 2007


Chen, Kangfu wrote:

>I'm connecting to Sybase 12.5 from Linux suse9 using unixODBC-2.2.12 and
>the Sybase ODBC driver. 
> 
>I have a timeout problem: 
> 
>I set the query timeout as 3 seconds by
>SQLSetStmtAttr(SQL_ATTR_QUERY_TIMEOUT), but if call SQLExecDirect() or
>SQLPrepare()/SQLExecute() timeout, the return code is still SQL_SUCCESS.
>
> 
>How can I distinguish a timeout error and a successful return?
> 
>Thanks
> 
>  
>
I think thats a question for the ODBC driver makers. unixODBC doesn't 
take part in that.

-- 
Nick Gorham
Easysoft Limited
http://www.easysoft.com, http://www.unixODBC.org




More information about the unixODBC-support mailing list