Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Initially from https://stackoverflow.com/questions/50875308/mariadb-jdbc-chokes-on-column-name-containing-curly-brackets
There is a wrong escaping when having "{}" in table/field name.
Example :
try (Connection conn = DriverManager.getConnection("jdbc:mariadb://localhost/testj?user=root&log=true")) { |
Statement stmt = conn.createStatement();
|
//will throw java.sql.SQLException: unknown escape sequence {tt1} |
stmt.execute("CREATE TEMPORARY TABLE `{tt1}`(`{Document id}` int, tt text)"); |
}
|