[ODBC-56] Incorrect calculation of StrLen buffer address in case of column-wise binding on 64it machines Created: 2016-09-27  Updated: 2016-09-27  Resolved: 2016-09-27

Status: Closed
Project: MariaDB Connector/ODBC
Component/s: None
Affects Version/s: None
Fix Version/s: 3.0.0, 2.0.13

Type: Bug Priority: Major
Reporter: Lawrin Novitsky Assignee: Lawrin Novitsky
Resolution: Fixed Votes: 0
Labels: None
Environment:

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));



 Comments   
Comment by Lawrin Novitsky [ 2016-09-27 ]

Fix and changes in testcases to cover this bug have been pushed

Generated at Thu Feb 08 03:25:54 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.