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.
62
62
63
63
## Extensions in the latest SNAPSHOT version 2.2
64
64
65
+ * allow ** duplicate** as object name
65
66
* make it JDK 11 buildable
66
67
* switched to minimum JDK 8
67
68
* 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 {
3718
3718
public void testCaseWhenExpressionIssue200 () throws JSQLParserException {
3719
3719
assertSqlCanBeParsedAndDeparsed ("SELECT * FROM t1, t2 WHERE CASE WHEN t1.id = 1 THEN t2.name = 'Marry' WHEN t1.id = 2 THEN t2.age = 10 END" );
3720
3720
}
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
+ }
3721
3731
}
You can’t perform that action at this time.
0 commit comments