Skip to content

Commit fc5a9a3

Browse files
authored
Allow isolation keywords as column name and aliases (#1534)
1 parent e4ec041 commit fc5a9a3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2500,6 +2500,12 @@ public void testMultiValueIn4() throws JSQLParserException {
25002500
assertSqlCanBeParsedAndDeparsed(stmt);
25012501
}
25022502

2503+
@Test
2504+
public void selectIsolationKeywordsAsAlias() throws JSQLParserException {
2505+
String stmt = "SELECT col FROM tbl cs";
2506+
assertSqlCanBeParsedAndDeparsed(stmt);
2507+
}
2508+
25032509
@Test
25042510
public void testMultiValueInBinds() throws JSQLParserException {
25052511
String stmt = "SELECT * FROM mytable WHERE (a, b) IN ((?, ?), (?, ?))";

0 commit comments

Comments
 (0)