add test for #455 (which passes)
This commit is contained in:
parent
56823b8888
commit
ca953e3c42
1 changed files with 4 additions and 0 deletions
|
|
@ -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]))))
|
||||
|
|
|
|||
Loading…
Reference in a new issue