Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0-incubating
-
None
-
None
-
platform: suse11
connect info : 10.10.10.176:23400
build : 20151121_0900-bin
driver version: 1119
Description
SQLFetch returned invalid cursor state
An unexpected error occurred when calling SQLFetch() in common.c.
Log SHOWCONTROL ALL error. Expected SQL_SUCCESS, returned -1
State: 24000
Native Error: 0
Error: [Trafodion ODBC Driver] INVALID CURSOR STATE.
test code -
SQLAllocStmt((SQLHANDLE)hdbc, &hstmt);
SQLExecDirect(hstmt,(SQLTCHAR *) ShowCntl, SQL_NTS);
//this statement is 'showcontrol all'
SQLFetch(hstmt); // it will return error