SQLExecDirect with SQL_ERROR dumps core on suselinux-x8664
"G, Hemanth Kumar" <[email protected]>
| Newsgroups | gmane.comp.db.unixodbc.devel |
|---|---|
| Message-ID | <DB5CCE49324ED540B132892B8F2892490250DB78@susday7667.TD.teradata.com> |
Hi Nick,
I have compiled unixODBC for suselinux-x8664.
My odbc application dumps core when an incorrect sql statement is used
in SQLExecDirect.
SQLExecDirect(hstmt, (SQLCHAR *)"select abcd", SQL_NTS);
Gdb trace:
_________________________________________________
#0 0x0000000000000000 in ?? ()
#1 0x00002ad3d6b133b0 in extract_sql_error (henv=0x0, hdbc=0x0,
hstmt=0x2,
connection=0x502a30, head=0x544120, return_code=-1) at __info.c:4325
#2 0x00002ad3d6b13da9 in function_return_ex (level=3, handle=0x543ce0,
ret_code=-1, save_to_diag=<value optimized out>) at __info.c:4861
#3 0x00002ad3d6ae7a03 in SQLExecDirect (statement_handle=0x543ce0,
statement_text=0x400d53 "select abcd", text_length=-3)
at SQLExecDirect.c:509
#4 0x0000000000400a97 in main () at sample.cpp:41
__________________________________________________
DM Trace:
__________________________________________________
[ODBC][15167][1245847213.636255][SQLExecDirect.c][240]
Entry:
Statement = 0x543ce0
SQL = [select dude][length = 11 (SQL_NTS)]
[ODBC][15167][1245847213.656286][SQLExecDirect.c][503]
Exit:[SQL_ERROR]
__________________________________________________
Am I missing something or has it got something to do with driver
manager?
Thanks,
Hemanth.
_______________________________________________
unixODBC-dev mailing list
[email protected]
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev