Skip to content

Commit 7c90a24

Browse files
committed
1 parent 45ac8c8 commit 7c90a24

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/test/java/net/sf/jsqlparser/parser/CCJSqlParserUtilTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,10 @@ public void testParseCondExpressionPartial2() throws Exception {
9696
Expression result = CCJSqlParserUtil.parseCondExpression("x=92 lasd y=29", true);
9797
assertEquals("x = 92", result.toString());
9898
}
99+
100+
@Test
101+
public void testParseCondExpressionIssue471() throws Exception {
102+
Expression result = CCJSqlParserUtil.parseCondExpression("(SSN,SSM) IN ('11111111111111', '22222222222222')");
103+
assertEquals("(SSN, SSM) IN ('11111111111111', '22222222222222')", result.toString());
104+
}
99105
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2686,4 +2686,8 @@ public void testIssue522_3() throws JSQLParserException {
26862686
public void testIssue522_4() throws JSQLParserException {
26872687
assertSqlCanBeParsedAndDeparsed("SELECT CASE a + b WHEN -1 * 5 THEN 1 ELSE CASE b + c WHEN -1 * 6 THEN 2 ELSE 3 END END");
26882688
}
2689+
2690+
public void testIssue423() throws JSQLParserException {
2691+
assertSqlCanBeParsedAndDeparsed("SELECT * FROM (tab)");
2692+
}
26892693
}

0 commit comments

Comments
 (0)