Skip to content

Commit ffeb7b7

Browse files
committed
util for conditional expression parsing included
1 parent bc5a6a4 commit ffeb7b7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-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
@@ -60,4 +60,10 @@ public void testParseExpression2() throws Exception {
6060
assertTrue(mult.getLeftExpression() instanceof LongValue);
6161
assertTrue(mult.getRightExpression() instanceof Parenthesis);
6262
}
63+
64+
@Test
65+
public void testParseCondExpression() throws Exception {
66+
Expression result = CCJSqlParserUtil.parseCondExpression("a+b>5 and c<3");
67+
assertEquals("a + b > 5 AND c < 3", result.toString());
68+
}
6369
}

0 commit comments

Comments
 (0)