[unixODBC-dev] SQLFreeStmt returns incorrect HY010 for HY092
G, Hemanth Kumar
Hemanth.G at Teradata.com
Tue Jun 30 13:52:42 BST 2009
Hello again,
When SQLFreeStmt with an invalid option is called after
SQLExecDirect with SQL_NEED_DATA, it should ideally return HY092 (Option
type out of range).
But returns HY010 (Function sequence error).
SQLExecDirect(hstmt, (SQLCHAR *)"insert into tmp values(?, 'bbc')",
SQL_NTS);
SQLFreeStmt(hstmt,4);
Expected: HY092 (Option type out of range).
Received : HY010 [unixODBC][Driver Manager]Function sequence error
------------------------------------------------------------------------
----------------------------------------------
[ODBC][29764][1246366293.967212][SQLExecDirect.c][503]
Exit:[SQL_NEED_DATA]
[ODBC][29764][1246366293.967238][SQLFreeStmt.c][144]
Entry:
Statement = 0x456d38
Option = 4
[ODBC][29764][1246366293.967256][SQLFreeStmt.c][159]Error: HY010
------------------------------------------------------------------------
---------------------------------------------
Please check..
Thanks
Hemanth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.unixodbc.org/pipermail/unixodbc-dev/attachments/20090630/1835d801/attachment.html>
More information about the unixODBC-dev
mailing list