Skip to content

Commit

Permalink
fixes #1075
Browse files Browse the repository at this point in the history
  • Loading branch information
wumpz committed Nov 22, 2020
1 parent 1008ebc commit b74f532
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt
Original file line number Diff line number Diff line change
Expand Up @@ -1333,7 +1333,7 @@ String RelObjectNameWithoutValue() :
| tk=<K_TEMP> | tk=<K_TEMPORARY> | tk=<K_TO> | tk=<K_TYPE> | tk=<K_ISNULL>
| tk=<K_ZONE> | tk=<K_COLUMNS> | tk=<K_DESCRIBE> | tk=<K_FN> | tk=<K_PATH>
| tk=<K_DATE_LITERAL> | tk=<K_NEXTVAL> | tk=<K_TRUE> | tk=<K_FALSE> | tk=<K_DUPLICATE>
| tk=<K_READ> | tk=<K_SCHEMA> | tk=<K_SIZE> | tk=<K_SESSION>
| tk=<K_READ> | tk=<K_SCHEMA> | tk=<K_SIZE> | tk=<K_SEQUENCE> | tk=<K_SESSION>
| tk=<K_VIEW> | tk=<K_NOLOCK> | tk=<K_VALIDATE> | tk=<K_CYCLE> | tk=<K_OF> | tk=<K_EXCLUDE>
/*| tk=<K_PLACING> | tk=<K_BOTH> | tk=<K_LEADING> | tk=<K_TRAILING> */
| tk=<K_FORMAT> | tk=<K_DIV>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4326,4 +4326,9 @@ public void testIssue1062_2() throws JSQLParserException {
public void testIssue1068() throws JSQLParserException {
assertSqlCanBeParsedAndDeparsed("SELECT t2.c AS div");
}

@Test
public void testKeywordSequenceIssue1075() throws JSQLParserException {
assertSqlCanBeParsedAndDeparsed("SELECT a.sequence FROM all_procedures a");
}
}

0 comments on commit b74f532

Please sign in to comment.