Skip to content

Commit

Permalink
fixes #128
Browse files Browse the repository at this point in the history
  • Loading branch information
wumpz committed Apr 27, 2015
1 parent 64b22e4 commit aa2913d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/javacc/net/sf/jsqlparser/parser/JSqlParserCC.jj
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ String RelObjectName():
| tk=<K_LAST> | tk=<K_MATERIALIZED> | tk=<K_NULLS> | tk=<K_PARTITION> | tk=<K_RANGE>
| tk=<K_ROW> | tk=<K_ROWS> | tk=<K_SIBLINGS> | tk=<K_VALUE> | tk=<K_XML>
| tk=<K_COLUMN> | tk=<K_REPLACE> | tk=<K_TRUNCATE> | tk=<K_KEY> | tk=<K_ANY>
| tk=<K_OPEN> | tk=<K_OVER> | tk=<K_VALUES>
| tk=<K_OPEN> | tk=<K_OVER> | tk=<K_VALUES> | tk=<K_PERCENT>
)

{ return tk.image; }
Expand Down
5 changes: 5 additions & 0 deletions src/test/java/net/sf/jsqlparser/test/select/SelectTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1720,4 +1720,9 @@ public void testSelectWithBrackets() throws JSQLParserException {
public void testSelectWithBrackets2() throws JSQLParserException {
assertSqlCanBeParsedAndDeparsed("(SELECT 1)");
}

public void testSelectKeywordPercent() throws JSQLParserException {
assertSqlCanBeParsedAndDeparsed("SELECT percent FROM MY_TABLE");
}

}

0 comments on commit aa2913d

Please sign in to comment.