Closed
Description
Valeriia Hrankina opened DATAJDBC-334 and commented
I have a table and columns in postgresql that have uppercase letters in names. So the generated sql should be escaped with double quotes to work correctly. Currently the sql generated does not escape identifiers with double quotes. When I have tries adding double quotes to the Table & Column annotations like so '@Column
(""Column"")' the parameter in PreparedStatement is also escaped, which causes an error, e.g. 'INSERT INTO "Table" ("Column1", "Column2") VALUES (:"Column1", :"Column2")'
Affects: 1.0.5 (Lovelace SR5)
Issue Links:
- DATAJDBC-381 Using backticks in column names leads to failure during INSERT with MySQL
Referenced from: pull request #120
Backported to: 1.0.6 (Lovelace SR6)