Skip to content

Commit 914ee73

Browse files
committed
1 parent 0b40453 commit 914ee73

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ Also I would like to know about needed examples or documentation stuff.
6262

6363
## Extensions in the latest SNAPSHOT version 2.2
6464

65+
* allow **duplicate** as object name
6566
* make it JDK 11 buildable
6667
* switched to minimum JDK 8
6768
* avoid buffer copy of input data if a normal String input is used

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3718,4 +3718,14 @@ public void testCaseWhenExpressionIssue262() throws JSQLParserException {
37183718
public void testCaseWhenExpressionIssue200() throws JSQLParserException {
37193719
assertSqlCanBeParsedAndDeparsed("SELECT * FROM t1, t2 WHERE CASE WHEN t1.id = 1 THEN t2.name = 'Marry' WHEN t1.id = 2 THEN t2.age = 10 END");
37203720
}
3721+
3722+
@Test
3723+
public void testKeywordDuplicate() throws JSQLParserException {
3724+
assertSqlCanBeParsedAndDeparsed("SELECT mytable.duplicate FROM mytable");
3725+
}
3726+
3727+
@Test
3728+
public void testKeywordDuplicate2() throws JSQLParserException {
3729+
assertSqlCanBeParsedAndDeparsed("SELECT * FROM mytable WHERE duplicate = 5");
3730+
}
37213731
}

0 commit comments

Comments
 (0)