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

Client preparestatement parsing error on escaped ' / " in query

    XMLWordPrintable

Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 2.2.6, 1.8.0
    • Other
    • None

    Description

      Client prepared statement has a parsing error on escaped ' / " in string.

      example to reproduce :

                  try (PreparedStatement preparedStatement = connection.prepareStatement("select '\\'' as a, ? as b, \"\\\"\" as c, ? as d")) {
                      preparedStatement.setString(1, "val");
                      preparedStatement.setString(2, "val2");
                      ResultSet rs = preparedStatement.executeQuery();
                  }
      
      

      Attachments

        Issue Links

          Activity

            People

              diego dupin Diego Dupin
              diego dupin Diego Dupin
              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.