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

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.15, 3.0.2
    • Fix Version/s: 2.0.16, 3.0.3
    • Component/s: General
    • Labels:
      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

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

              Dates

              Created:
              Updated:
              Resolved: