Skip to content

Commit ce392b3

Browse files
committed
fixes #941
1 parent d0cd8f8 commit ce392b3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,7 @@ String RelObjectName() :
11511151
{ Token tk = null; String result = null; }
11521152
{
11531153
(result = RelObjectNameWithoutValue()
1154-
| tk=<K_GROUP> | tk=<K_INTERVAL> | tk=<K_ON> | tk=<K_ORDER> | tk=<K_START> | tk=<K_TOP> | tk=<K_VALUE> | tk=<K_VALUES> )
1154+
| tk=<K_GROUP> | tk=<K_INTERVAL> | tk=<K_ON> | tk=<K_ORDER> | tk=<K_START> | tk=<K_TOP> | tk=<K_VALUE> | tk=<K_VALUES> | tk=<K_CREATE> )
11551155

11561156
{
11571157
if (tk!=null) result=tk.image;

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4049,5 +4049,8 @@ public void testTableFunctionInExprIssue923_6() throws JSQLParserException {
40494049
assertSqlCanBeParsedAndDeparsed("SELECT * FROM mytable WHERE func(a) IN '1'");
40504050
}
40514051

4052-
4052+
@Test
4053+
public void testKeyWordCreateIssue941() throws JSQLParserException {
4054+
assertSqlCanBeParsedAndDeparsed("SELECT b.create FROM table b WHERE b.id = 1");
4055+
}
40534056
}

0 commit comments

Comments
 (0)