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

SQLException on PreparedStatement with special chars

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • 2.3.0
    • 2.4.0
    • protocol
    • 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

              diego dupin Diego Dupin
              sstamm Sebastian Stamm
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.