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

SQLException on PreparedStatement with special chars

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.3.0
    • Fix Version/s: 2.4.0
    • Component/s: protocol
    • Labels:
      None

      Description

      Looks by removing the "\\\\" the statement works.

      java.lang.RuntimeException: java.sql.SQLException: Could not set parameter at position 1 (values was '5310083677')
      Query - conn:12062005(M) - "SELECT CONCAT(country, "\\\", customer, "\\\", `system`) AS path FROM device WHERE serialNumber = ?"

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              diego dupin Diego Dupin
              Reporter:
              sstamm Sebastian Stamm
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: