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

Fetch fails if unbound column contains NULL, and there was some descriptor field set for it

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 2.0.15, 3.0.2
    • 2.0.16, 3.0.3
    • General
    • None

    Description

      How to repeat(and it's self-explaining):
      ODBC_TEST(unbound_null)

      { SQLHANDLE Ard; OK_SIMPLE_STMT(Stmt, "SELECT NULL"); CHECK_STMT_RC(Stmt, SQLGetStmtAttr(Stmt, SQL_ATTR_APP_ROW_DESC, &Ard, 0, NULL)); CHECK_DESC_RC(Ard, SQLSetDescField(Ard, 1, SQL_DESC_TYPE, (SQLPOINTER)SQL_NUMERIC, 0)); CHECK_STMT_RC(Stmt, SQLFetch(Stmt)); CHECK_STMT_RC(Stmt, SQLFreeStmt(Stmt, SQL_CLOSE)); return OK; }

      This bug affects ADO, as similar sequence of actions is possible with CursorLocation adUseClient

      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.