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

Connector can crash, if one of queires in the batch returns error on result storing

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.1.17
    • 3.2.0, 3.1.18
    • General
    • None

    Description

      For example, this batch

      "SELECT 1; SELECT(SELECT ENGINE FROM INFORMATION_SCHEMA.ENGINES)"
      

      will do this.

      This happens, because 2nd query prepares and executes without an error, the error occurs only on the stage of the storing of the result(because sub-query returns more than one row), and that case is not processed in the connector in case of batch of queries.

      Attachments

        Issue Links

          Activity

            3.2 will behave differently on this batch., If 3.1 returns error on execution, 3.2 will execute with success, but SQLMoreResults will return error(on move to result of erroneous statement in the batch)

            Lawrin Lawrin Novitsky added a comment - 3.2 will behave differently on this batch., If 3.1 returns error on execution, 3.2 will execute with success, but SQLMoreResults will return error(on move to result of erroneous statement in the batch)

            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.