Skip to content

Commit aa2913d

Browse files
committed
fixes #128
1 parent 64b22e4 commit aa2913d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/main/javacc/net/sf/jsqlparser/parser/JSqlParserCC.jj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ String RelObjectName():
538538
| tk=<K_LAST> | tk=<K_MATERIALIZED> | tk=<K_NULLS> | tk=<K_PARTITION> | tk=<K_RANGE>
539539
| tk=<K_ROW> | tk=<K_ROWS> | tk=<K_SIBLINGS> | tk=<K_VALUE> | tk=<K_XML>
540540
| tk=<K_COLUMN> | tk=<K_REPLACE> | tk=<K_TRUNCATE> | tk=<K_KEY> | tk=<K_ANY>
541-
| tk=<K_OPEN> | tk=<K_OVER> | tk=<K_VALUES>
541+
| tk=<K_OPEN> | tk=<K_OVER> | tk=<K_VALUES> | tk=<K_PERCENT>
542542
)
543543

544544
{ return tk.image; }

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1720,4 +1720,9 @@ public void testSelectWithBrackets() throws JSQLParserException {
17201720
public void testSelectWithBrackets2() throws JSQLParserException {
17211721
assertSqlCanBeParsedAndDeparsed("(SELECT 1)");
17221722
}
1723+
1724+
public void testSelectKeywordPercent() throws JSQLParserException {
1725+
assertSqlCanBeParsedAndDeparsed("SELECT percent FROM MY_TABLE");
1726+
}
1727+
17231728
}

0 commit comments

Comments
 (0)