Skip to content

Commit

Permalink
fixes #936
Browse files Browse the repository at this point in the history
fixes #938
  • Loading branch information
wumpz committed Feb 1, 2020
1 parent abf440d commit 39e920d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ Also I would like to know about needed examples or documentation stuff.
* support for **ALTER TABLE COLUMN DROP NOT NULL**
* allow **order** as column name
* support for table function in **IN** expression
* allow complex expressions within all of a **case when** statement
* support for parameters in **create index** statement

## Extensions of JSqlParser releases

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1321,6 +1321,11 @@ public void testIssue235SimplifiedCase4() throws JSQLParserException {
public void testIssue862CaseWhenConcat() throws JSQLParserException {
assertSqlCanBeParsedAndDeparsed("SELECT c1, CASE c1 || c2 WHEN '091' THEN '2' ELSE '1' END AS c11 FROM T2");
}

@Test
public void testExpressionsInCaseBeforeWhen() throws JSQLParserException {
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");
}

@Test
@Ignore
Expand Down

0 comments on commit 39e920d

Please sign in to comment.