Skip to content

Commit b74f532

Browse files
committed
fixes #1075
1 parent 1008ebc commit b74f532

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
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
@@ -1333,7 +1333,7 @@ String RelObjectNameWithoutValue() :
13331333
| tk=<K_TEMP> | tk=<K_TEMPORARY> | tk=<K_TO> | tk=<K_TYPE> | tk=<K_ISNULL>
13341334
| tk=<K_ZONE> | tk=<K_COLUMNS> | tk=<K_DESCRIBE> | tk=<K_FN> | tk=<K_PATH>
13351335
| tk=<K_DATE_LITERAL> | tk=<K_NEXTVAL> | tk=<K_TRUE> | tk=<K_FALSE> | tk=<K_DUPLICATE>
1336-
| tk=<K_READ> | tk=<K_SCHEMA> | tk=<K_SIZE> | tk=<K_SESSION>
1336+
| tk=<K_READ> | tk=<K_SCHEMA> | tk=<K_SIZE> | tk=<K_SEQUENCE> | tk=<K_SESSION>
13371337
| tk=<K_VIEW> | tk=<K_NOLOCK> | tk=<K_VALIDATE> | tk=<K_CYCLE> | tk=<K_OF> | tk=<K_EXCLUDE>
13381338
/*| tk=<K_PLACING> | tk=<K_BOTH> | tk=<K_LEADING> | tk=<K_TRAILING> */
13391339
| tk=<K_FORMAT> | tk=<K_DIV>

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4326,4 +4326,9 @@ public void testIssue1062_2() throws JSQLParserException {
43264326
public void testIssue1068() throws JSQLParserException {
43274327
assertSqlCanBeParsedAndDeparsed("SELECT t2.c AS div");
43284328
}
4329+
4330+
@Test
4331+
public void testKeywordSequenceIssue1075() throws JSQLParserException {
4332+
assertSqlCanBeParsedAndDeparsed("SELECT a.sequence FROM all_procedures a");
4333+
}
43294334
}

0 commit comments

Comments
 (0)