Skip to content

Commit 1d8a947

Browse files
committed
fixes #884
1 parent 7746bbb commit 1d8a947

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ Also I would like to know about needed examples or documentation stuff.
6565

6666
## Extensions in the latest SNAPSHOT version 3.1
6767

68+
* allowed keyword **character** as object name
69+
* allowed keyword **size** as object name
6870
* introduced **FILTER** expression for window functions
6971
* allow more complex expressions for **CASE**.
7072
* allowed **start** as object name as column name or table name

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3907,4 +3907,8 @@ public void testWindowClauseWithoutOrderByIssue869() throws JSQLParserException
39073907
public void testKeywordSizeIssue880() throws JSQLParserException {
39083908
assertSqlCanBeParsedAndDeparsed("SELECT b.pattern_size_id, b.pattern_id, b.variation, b.measure_remark, b.pake_name, b.ident_size, CONCAT( GROUP_CONCAT(a.size) ) AS 'title', CONCAT( '[', GROUP_CONCAT( '{\"patternSizeDetailId\":', a.pattern_size_detail_id, ',\"patternSizeId\":', a.pattern_size_id, ',\"size\":\"', a.size, '\",\"sizeValue\":', a.size_value SEPARATOR '},' ), '}]' ) AS 'designPatternSizeDetailJson' FROM design_pattern_size_detail a LEFT JOIN design_pattern_size b ON a.pattern_size_id = b.pattern_size_id WHERE b.pattern_id = 792679713905573986 GROUP BY b.pake_name,b.pattern_size_id", true);
39093909
}
3910+
3911+
public void testKeywordCharacterIssue884() throws JSQLParserException {
3912+
assertSqlCanBeParsedAndDeparsed("SELECT Character, Duration FROM actor");
3913+
}
39103914
}

0 commit comments

Comments
 (0)