Skip to content

Commit de61c0b

Browse files
committed
fixes #217
1 parent bcfa257 commit de61c0b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-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
@@ -664,6 +664,7 @@ String RelObjectName() :
664664
| tk=<K_ROW> | tk=<K_ROWS> | tk=<K_SIBLINGS> | tk=<K_VALUE> | tk=<K_XML>
665665
| tk=<K_COLUMN> | tk=<K_REPLACE> | tk=<K_TRUNCATE> | tk=<K_KEY> | tk=<K_ANY>
666666
| tk=<K_OPEN> | tk=<K_OVER> | tk=<K_VALUES> | tk=<K_PERCENT> | tk=<K_PRIOR>
667+
| tk=<K_SEPARATOR>
667668
)
668669

669670
{ return tk.image; }

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2071,4 +2071,8 @@ public void testTableFunctionWithAlias() throws Exception {
20712071
public void testIssue151_tableFunction() throws JSQLParserException {
20722072
assertSqlCanBeParsedAndDeparsed("SELECT * FROM tables a LEFT JOIN getdata() b ON a.id = b.id");
20732073
}
2074+
2075+
public void testIssue217_keywordSeparator() throws JSQLParserException {
2076+
assertSqlCanBeParsedAndDeparsed("SELECT Separator");
2077+
}
20742078
}

0 commit comments

Comments
 (0)