mirror of
https://github.com/moparisthebest/JdbcMapper
synced 2024-12-22 07:18:51 -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("conn.prepareStatement(");
|
||||||
}
|
}
|
||||||
w.write('"');
|
w.write('"');
|
||||||
w.write(sqlStatement.replaceAll("\n", "\\n").replaceAll("\"", "\\\""));
|
w.write(sqlStatement.replace("\n", "\\n").replace("\"", "\\\""));
|
||||||
w.write("\");\n");
|
w.write("\");\n");
|
||||||
|
|
||||||
// now bind parameters
|
// now bind parameters
|
||||||
|
Loading…
Reference in New Issue
Block a user