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

Client preparestatement parsing error on escaped ' / " in query

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.6, 1.8.0
    • Component/s: Other
    • Labels:
      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

              • Assignee:
                diego dupin Diego Dupin
                Reporter:
                diego dupin Diego Dupin
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: