Skip to content

Commit c5c26ca

Browse files
committed
fixes #610
1 parent 70ec6c1 commit c5c26ca

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ String RelObjectNameWithoutValue() :
970970
| tk=<K_TABLE> | tk=<K_DATETIMELITERAL> | tk=<K_COMMIT> | tk=<K_PRECISION>
971971
| tk=<K_INSERT> | tk=<K_INDEX> | tk=<K_PRIMARY> | tk=<K_ENABLE>
972972
| tk=<K_UNSIGNED>
973-
| tk=<K_TEMP> | tk=<K_TEMPORARY>
973+
| tk=<K_TEMP> | tk=<K_TEMPORARY> | tk=<K_ISNULL>
974974
)
975975

976976
{ return tk.image; }

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2809,4 +2809,8 @@ public void testProblemSqlFuncParamIssue605() throws JSQLParserException {
28092809
public void testProblemSqlFuncParamIssue605_2() throws JSQLParserException {
28102810
assertSqlCanBeParsedAndDeparsed("SELECT func(SELECT col1 FROM mytable)");
28112811
}
2812+
2813+
public void testSqlContainIsNullFunctionShouldBeParsed() throws JSQLParserException {
2814+
assertSqlCanBeParsedAndDeparsed("SELECT name, age, ISNULL(home, 'earn more money') FROM person");
2815+
}
28122816
}

0 commit comments

Comments
 (0)