Skip to content

Commit 9a4ad2a

Browse files
authored
Merge pull request #243 from cloudimpl/single-quotation-replace
2 parents b62282f + 29479d2 commit 9a4ad2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

outstack-spring/src/main/java/com/cloudimpl/outstack/spring/repo/PostgresSqlNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public String eval(RestQLNode node) {
2020
if (node instanceof ConstArrayNode) {
2121
return ConstArrayNode.class.cast(node).getVals().toString();
2222
} else if (node instanceof ConstStringNode) {
23-
return String.valueOf(ConstStringNode.class.cast(node).getVal());
23+
return String.valueOf(ConstStringNode.class.cast(node).getVal()).replaceAll("\\\\'", "''");
2424
} else if (node instanceof ConstNumberNode) {
2525
return String.valueOf(ConstNumberNode.class.cast(node).getVal());
2626
} else if (node instanceof ConstBooleanNode) {

0 commit comments

Comments
 (0)