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

SQLGetDescRec returns wrong field data

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.1.23, 3.2.9
    • 3.1.24, 3.2.10
    • General
    • None

    Description

      The RecNumber argument of the function is 1-based, but internal function getting the record is 0-based. That caused shift in results - the function returned data for the next record(and default descriptor data for the last record).
      The good thing is that the purpose of this API function is not quite clear, or rather it does not look that useful, and applications out there do not use it. The shameful fact is that we did not have a testcase for it, otherwise we would also catch ODBC-500 long time ago.

      Attachments

        Issue Links

          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.