diff --git a/test/honey/sql_test.cljc b/test/honey/sql_test.cljc index be2d003..4105806 100644 --- a/test/honey/sql_test.cljc +++ b/test/honey/sql_test.cljc @@ -68,6 +68,10 @@ (is (= ["INTERVAL ? DAYS" 30] (sut/format-expr [:interval 30 :days])))) +(deftest issue-455-null + (is (= ["WHERE (abc + ?) IS NULL" "abc"] + (sut/format {:where [:= [:+ :abc "abc"] nil]})))) + (deftest where-test (is (= ["WHERE id = ?" 1] (#'sut/format-on-expr :where [:= :id 1]))))