[unixODBC-support] Query timeout

Chen, Kangfu kangfu.chen at wachovia.com
Wed Mar 21 17:20:38 GMT 2007

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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.unixodbc.org/pipermail/unixodbc-support/attachments/20070321/9e54c537/attachment.html>

More information about the unixODBC-support mailing list