Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
64bit
Description
to repoduce:
OK_SIMPLE_STMT(Stmt, "create table t_odbc (id int)");
OK_SIMPLE_STMT(Stmt, "insert into t_odbc values(1), (2)");
CHECK_STMT_RC(Stmt, SQLSetStmtAttr(Stmt,SQL_ATTR_ROW_ARRAY_SIZE,(SQLPOINTER)2,0));
OK_SIMPLE_STMT(Stmt, "select * from t_odbc");
CHECK_STMT_RC(Stmt, SQLBindCol(Stmt,1,SQL_C_LONG,&iarray,0,len));
CHECK_STMT_RC(Stmt, SQLFetchScroll(Stmt,SQL_FETCH_NEXT,0));
is_num(len[0], len[1]);
is_num(len[1], sizeof(SQLUINTEGER));