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

Option MARIADB_OPT_MULTI_STATEMENTS gets sometimes ignored

    XMLWordPrintable

Details

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

    Description

      When you disable the option MARIADB_OPT_MULTI_STATEMENTS doc-link on the driver, the driver sometimes ignores the option and still rewrites the query outputting multiple statements.

      The function `assembleBatchRewriteQuery` in "ClientPrepareResult.cpp" ignores the option.

      See the part after "if (knownParameterSize) {" link

      When you have a batched call, the driver rewrites it to a multi statements, which could be gets rejected by the database, if multistatement is disabled.

      edit:formatting

      Attachments

        Activity

          People

            Lawrin Lawrin Novitsky
            mmoel Matthias Möller
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.