[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: |
|
||||||||
| 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 ( |
| 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. |