Skip to content

Commit f7f9d27

Browse files
authored
fixs #1520 (#1521)
1 parent 22fef8c commit f7f9d27

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-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
@@ -1690,7 +1690,7 @@ String RelObjectNameWithoutValue() :
16901690
| tk=<K_ARRAY_LITERAL>
16911691
| tk=<K_STRING_FUNCTION_NAME>
16921692
| tk=<K_USER>
1693-
| tk=<K_RECYCLEBIN> | tk=<K_DBA_RECYCLEBIN>
1693+
| tk=<K_RECYCLEBIN> | tk=<K_DBA_RECYCLEBIN> | tk=<K_ISOLATION>
16941694

16951695
/* Keywords for ALTER SESSION */
16961696
/* | tk=<K_NAME> */ | tk=<K_TIMEOUT> | tk=<K_PARALLEL>

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5193,6 +5193,9 @@ public void testWithIsolation() throws JSQLParserException {
51935193
isolation = ((PlainSelect) select.getSelectBody()).getWithIsolation().getIsolation();
51945194
assertEquals("Cs", isolation);
51955195
assertSqlCanBeParsedAndDeparsed(statement);
5196+
5197+
statement = "SELECT rs.col, * FROM mytable RS WHERE mytable.col = 9";
5198+
assertSqlCanBeParsedAndDeparsed(statement);
51965199
}
51975200

51985201
@Test

0 commit comments

Comments
 (0)