SQLFreeStmt returns incorrect HY010 for HY092
"G, Hemanth Kumar" <[email protected]>
| Newsgroups | gmane.comp.db.unixodbc.devel |
|---|---|
| Message-ID | <DB5CCE49324ED540B132892B8F289249026B16B3@susday7667.TD.teradata.com> |
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
_______________________________________________
unixODBC-dev mailing list
[email protected]
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev