Skip to content

Commit

Permalink
fixs #1520 (#1521)
Browse files Browse the repository at this point in the history
  • Loading branch information
chiangcho authored May 11, 2022
1 parent 22fef8c commit f7f9d27
Show file tree
Hide file tree
Showing 2 changed files with 4 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 @@ -1690,7 +1690,7 @@ String RelObjectNameWithoutValue() :
| tk=<K_ARRAY_LITERAL>
| tk=<K_STRING_FUNCTION_NAME>
| tk=<K_USER>
| tk=<K_RECYCLEBIN> | tk=<K_DBA_RECYCLEBIN>
| tk=<K_RECYCLEBIN> | tk=<K_DBA_RECYCLEBIN> | tk=<K_ISOLATION>

/* Keywords for ALTER SESSION */
/* | tk=<K_NAME> */ | tk=<K_TIMEOUT> | tk=<K_PARALLEL>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5193,6 +5193,9 @@ public void testWithIsolation() throws JSQLParserException {
isolation = ((PlainSelect) select.getSelectBody()).getWithIsolation().getIsolation();
assertEquals("Cs", isolation);
assertSqlCanBeParsedAndDeparsed(statement);

statement = "SELECT rs.col, * FROM mytable RS WHERE mytable.col = 9";
assertSqlCanBeParsedAndDeparsed(statement);
}

@Test
Expand Down

0 comments on commit f7f9d27

Please sign in to comment.