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

Length is not returned for SQL_C_WCHAR on SQLFetch if data buffer is NULL

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 3.1.16
    • General
    • None

    Description

      If application only wants to know the length of WCHAR data in the column(and not the data itself), the driver returns 0

      Attachments

        Activity

          The fix only has been pushed(the testcase for ODBC-359 covers this case)

          If application wanted to know length of wchar data(to allocate the buffer
          and later fetch it) - i.e. it SQLBindCol only length pointer, and no
          data pointer, on SQLFetch connector would put 0 in the length buffer.
          Usually that is done with SQLGetData, but this way is also legitimate.

          Lawrin Lawrin Novitsky added a comment - The fix only has been pushed(the testcase for ODBC-359 covers this case) If application wanted to know length of wchar data(to allocate the buffer and later fetch it) - i.e. it SQLBindCol only length pointer, and no data pointer, on SQLFetch connector would put 0 in the length buffer. Usually that is done with SQLGetData, but this way is also legitimate.

          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.