Skip to content

Commit 320f64a

Browse files
committed
fixes #393
1 parent 42f3242 commit 320f64a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,7 @@ String RelObjectName() :
763763
| tk=<K_OPEN> | tk=<K_OVER> | tk=<K_VALUES> | tk=<K_PERCENT> | tk=<K_PRIOR>
764764
| tk=<K_SEPARATOR> | tk=<K_NO> | tk=<K_ACTION> | tk=<K_CASCADE> | tk=<K_END>
765765
| tk=<K_TABLE> | tk=<K_DATETIMELITERAL> | tk=<K_COMMIT> | tk=<K_PRECISION>
766+
| tk=<K_INSERT>
766767
)
767768

768769
{ return tk.image; }

src/test/java/net/sf/jsqlparser/test/select/SelectTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2443,4 +2443,12 @@ public void testProblemInNotInProblemIssue379() throws JSQLParserException {
24432443
public void testProblemLargeNumbersIssue390() throws JSQLParserException {
24442444
assertSqlCanBeParsedAndDeparsed("SELECT * FROM student WHERE student_no = 20161114000000035001");
24452445
}
2446+
2447+
public void testKeyWorkInsertIssue393() throws JSQLParserException {
2448+
assertSqlCanBeParsedAndDeparsed("SELECT insert(\"aaaabbb\", 4, 4, \"****\")");
2449+
}
2450+
2451+
public void testKeyWorkReplaceIssue393() throws JSQLParserException {
2452+
assertSqlCanBeParsedAndDeparsed("SELECT replace(\"aaaabbb\", 4, 4, \"****\")");
2453+
}
24462454
}

0 commit comments

Comments
 (0)