Skip to content

Commit 6da696b

Browse files
committed
fixes #733
1 parent d3553bc commit 6da696b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3395,6 +3395,11 @@ public void testFuncConditionParameter3() throws JSQLParserException {
33953395
assertSqlCanBeParsedAndDeparsed("SELECT CAST((MAX(CAST(IIF(isnumeric(license_no) = 1, license_no, 0) AS INT)) + 2) AS varchar) FROM lcps.t_license WHERE profession_id = 60 and license_type = 100 and YEAR(issue_date) % 2 = case when YEAR(issue_date) % 2 = 0 then 0 else 1 end and ISNUMERIC(license_no) = 1", true);
33963396
}
33973397

3398+
@Test
3399+
public void testSqlContainIsNullFunctionShouldBeParsed3() throws JSQLParserException {
3400+
assertSqlCanBeParsedAndDeparsed("SELECT name, age FROM person WHERE NOT ISNULL(home, 'earn more money')");
3401+
}
3402+
33983403
@Test
33993404
public void testRawStringExpressionIssue656() throws JSQLParserException {
34003405
for (String c : new String[]{"u", "e", "n", "r", "b", "rb"}) {

0 commit comments

Comments
 (0)