[CONJ-662] SQLException on PreparedStatement with special chars Created: 2018-11-27  Updated: 2019-01-31  Resolved: 2018-12-14

Status: Closed
Project: MariaDB Connector/J
Component/s: protocol
Affects Version/s: 2.3.0
Fix Version/s: 2.4.0

Type: Bug Priority: Major
Reporter: Sebastian Stamm Assignee: Diego Dupin
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Relates
relates to CONJ-664 SQLException when backslash (\), whic... Closed

 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 = ?"



 Comments   
Comment by Diego Dupin [ 2018-12-14 ]

issue corrected with CONJ-664, due to an error in parsing double backslash

Generated at Thu Feb 08 03:17:24 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.