Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-155

Can't insert semicolons with rewriteBatchedStatements=true

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 1.1.8
    • 1.1.9
    • Other
    • None

    Description

      The fix for CONJ-99 introduced a regression. getInsertIncipit checks for the location of a semicolon in the INSERT statement to ensure the DML provided is just a simple INSERT. However, if you're trying to insert a semicolon as part of your data, you're out of luck.

      For instance, INSERT INTO `mytable`(`myfield`) VALUES (';')

      Attachments

        Issue Links

          Activity

            Duplicate of CONJ-142 which is fixed on the master branch

            roidelapluie Julien Pivotto added a comment - Duplicate of CONJ-142 which is fixed on the master branch
            ams2990 Andy Shulman added a comment -

            I agree it's a duplicate, but it's definitely not fixed on master.

            ams2990 Andy Shulman added a comment - I agree it's a duplicate, but it's definitely not fixed on master.
            diego dupin Diego Dupin added a comment -

            it is now (since the 4 june)

            diego dupin Diego Dupin added a comment - it is now (since the 4 june)

            People

              diego dupin Diego Dupin
              ams2990 Andy Shulman
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.