Skip to content

Commit 10e68b5

Browse files
committed
fixes #261
1 parent 77ba380 commit 10e68b5

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
@@ -677,6 +677,7 @@ String RelObjectName() :
677677
| tk=<K_COLUMN> | tk=<K_REPLACE> | tk=<K_TRUNCATE> | tk=<K_KEY> | tk=<K_ANY>
678678
| tk=<K_OPEN> | tk=<K_OVER> | tk=<K_VALUES> | tk=<K_PERCENT> | tk=<K_PRIOR>
679679
| tk=<K_SEPARATOR> | tk=<K_NO> | tk=<K_ACTION> | tk=<K_CASCADE> | tk=<K_END>
680+
| tk=<K_TABLE>
680681
)
681682

682683
{ 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
@@ -2184,4 +2184,8 @@ public void testNestedFunctionCallIssue253() throws JSQLParserException {
21842184
public void testEscapedBackslashIssue253() throws JSQLParserException {
21852185
assertSqlCanBeParsedAndDeparsed("SELECT replace_regex('test', '\\\\', '\\\\\\\\')");
21862186
}
2187+
2188+
public void testKeywordTableIssue261() throws JSQLParserException {
2189+
assertSqlCanBeParsedAndDeparsed("SELECT column_value FROM table(VARCHAR_LIST_TYPE())");
2190+
}
21872191
}

0 commit comments

Comments
 (0)