File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
src/test/java/net/sf/jsqlparser/statement/select Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments