mirror of
https://github.com/moparisthebest/JdbcMapper
synced 2024-12-21 23:08:52 -05:00
Fix sql statement escaping
This commit is contained in:
parent
6fef6f284f
commit
c1b8b2e705
@ -338,7 +338,7 @@ public class JdbcMapperProcessor extends AbstractProcessor {
|
||||
w.write("conn.prepareStatement(");
|
||||
}
|
||||
w.write('"');
|
||||
w.write(sqlStatement.replaceAll("\n", "\\n").replaceAll("\"", "\\\""));
|
||||
w.write(sqlStatement.replace("\n", "\\n").replace("\"", "\\\""));
|
||||
w.write("\");\n");
|
||||
|
||||
// now bind parameters
|
||||
|
Loading…
Reference in New Issue
Block a user