From ca953e3c42d08ad6ea456e1d0ccfd3b444f0afbf Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Fri, 13 Jan 2023 13:01:35 -0800 Subject: [PATCH] add test for #455 (which passes) --- test/honey/sql_test.cljc | 4 ++++ 1 file changed, 4 insertions(+) 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]))))