From fc5a9a3dbb91e8e77122f953c2f29c0e028479d1 Mon Sep 17 00:00:00 2001 From: "Tomer Shay (Shimshi)" Date: Fri, 20 May 2022 04:01:44 +0700 Subject: [PATCH] Allow isolation keywords as column name and aliases (#1534) --- .../java/net/sf/jsqlparser/statement/select/SelectTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/java/net/sf/jsqlparser/statement/select/SelectTest.java b/src/test/java/net/sf/jsqlparser/statement/select/SelectTest.java index 672333a04..78402b8fc 100644 --- a/src/test/java/net/sf/jsqlparser/statement/select/SelectTest.java +++ b/src/test/java/net/sf/jsqlparser/statement/select/SelectTest.java @@ -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 ((?, ?), (?, ?))";