Fixed bug reported by JTK related to the not-null sql-expression
[clsql.git] / tests / test-syntax.lisp
index ed1f4817c604f3926a84304afe1b93e2928932dd..9bd666247ff860a86def758c4b4a6a528bd51364 100644 (file)
     (clsql:sql [not [null]])
   "(NOT (NULL))")
 
+(deftest :syntax/null/5
+    (clsql:sql [is [foo.bar] [null]])
+  "(FOO.BAR IS NULL)")
+
+(deftest :syntax/null/6
+    (clsql:sql [is [foo.bar] [not-null]])
+  "(FOO.BAR IS NOT NULL)")
+
+(deftest :syntax/null/7
+    (clsql:sql [not-null [foo.bar]])
+  "(FOO.BAR IS NOT NULL)")
+
 
 
 (deftest :syntax/relational/1