[CONJ-1058] org.mariadb.jdbc.Statement does not implement enquote* methods (JDBC 4.3) Created: 2023-02-22  Updated: 2023-03-02  Resolved: 2023-03-01

Status: Closed
Project: MariaDB Connector/J
Component/s: JDBC compatibility
Affects Version/s: 3.1.2
Fix Version/s: 3.1.3

Type: Bug Priority: Major
Reporter: Peter Halicky Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to CONJ-561 Partial JDBC 4.3 support Closed

 Description   

org.mariadb.jdbc.Statement does not implement enquote* methods from JDBC 4.3 API. As a result, default methods from java.sql.Statement get used, which enquote identifiers in double quotes. Since MariaDB does not support identifiers enquoted in double quotes, the code building the SQL statement then creates invalid SQL.

The methods are available in 2.x series since 2.5.0 (CONJ-561).



 Comments   
Comment by Peter Halicky [ 2023-02-22 ]

Note that I have also submitted a pull request for this: https://github.com/mariadb-corporation/mariadb-connector-j/pull/184

Comment by Diego Dupin [ 2023-03-01 ]

thanks for the remark and PR.

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