| Bug #112083 | `java.sql.Statement.enquoteIdentifier` bad behavior | ||
|---|---|---|---|
| Submitted: | 16 Aug 2023 10:40 | Modified: | 17 Aug 2023 8:26 |
| Reporter: | A B | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | Connector / J | Severity: | S2 (Serious) |
| Version: | 8.1.0 | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
[17 Aug 2023 8:26]
MySQL Verification Team
Hello! Thank you for the report and feedback. Verifying as a feature request. regards, Umesh

Description: `enquoteIdentifier` not implemented. java-sql's default behavior doesn't work in MySQL How to repeat: Snippet: ```java Connection conn = DriverManager.getConnection("jdbc:mysql://...", "...", "..."); Statement stmt = conn.createStatement(); String identifier = stmt.enquoteIdentifier("bla", true); System.out.println(identifier); ``` prints `"bla"` instead of `\`bla\`` Suggested fix: Implement the function