Skip to content

Commit

Permalink
Allow isolation keywords as column name and aliases (#1534)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomershay authored May 19, 2022
1 parent e4ec041 commit fc5a9a3
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2500,6 +2500,12 @@ public void testMultiValueIn4() throws JSQLParserException {
assertSqlCanBeParsedAndDeparsed(stmt);
}

@Test
public void selectIsolationKeywordsAsAlias() throws JSQLParserException {
String stmt = "SELECT col FROM tbl cs";
assertSqlCanBeParsedAndDeparsed(stmt);
}

@Test
public void testMultiValueInBinds() throws JSQLParserException {
String stmt = "SELECT * FROM mytable WHERE (a, b) IN ((?, ?), (?, ?))";
Expand Down

0 comments on commit fc5a9a3

Please sign in to comment.