Uploaded image for project: 'MariaDB Connector/ODBC'
  1. MariaDB Connector/ODBC
  2. ODBC-56

Incorrect calculation of StrLen buffer address in case of column-wise binding on 64it machines

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0, 2.0.13
    • 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));

      Attachments

        Activity

          People

            Lawrin Lawrin Novitsky
            Lawrin Lawrin Novitsky
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.