Skip to content

Commit 39e920d

Browse files
committed
fixes #936
fixes #938
1 parent abf440d commit 39e920d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ Also I would like to know about needed examples or documentation stuff.
7373
* support for **ALTER TABLE COLUMN DROP NOT NULL**
7474
* allow **order** as column name
7575
* support for table function in **IN** expression
76+
* allow complex expressions within all of a **case when** statement
77+
* support for parameters in **create index** statement
7678

7779
## Extensions of JSqlParser releases
7880

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,6 +1321,11 @@ public void testIssue235SimplifiedCase4() throws JSQLParserException {
13211321
public void testIssue862CaseWhenConcat() throws JSQLParserException {
13221322
assertSqlCanBeParsedAndDeparsed("SELECT c1, CASE c1 || c2 WHEN '091' THEN '2' ELSE '1' END AS c11 FROM T2");
13231323
}
1324+
1325+
@Test
1326+
public void testExpressionsInCaseBeforeWhen() throws JSQLParserException {
1327+
assertSqlCanBeParsedAndDeparsed("SELECT a FROM tbl1 LEFT JOIN tbl2 ON CASE tbl1.col1 WHEN tbl1.col1 = 1 THEN tbl1.col2 = tbl2.col2 ELSE tbl1.col3 = tbl2.col3 END");
1328+
}
13241329

13251330
@Test
13261331
@Ignore

0 commit comments

Comments
 (0)