Demonstrate that empty arrays do not generate the right SQL
This commit is contained in:
parent
be203e9086
commit
ed223a5758
1 changed files with 4 additions and 0 deletions
|
|
@ -83,6 +83,10 @@
|
|||
["SELECT id FROM foo WHERE EXISTS (SELECT ? FROM bar WHERE deleted)" 1])))
|
||||
|
||||
(deftest array-test
|
||||
(is (= (format {:insert-into :foo
|
||||
:columns [:baz]
|
||||
:values [[(sql/array [])]]})
|
||||
["INSERT INTO foo (baz) VALUES ('{}')"]))
|
||||
(is (= (format {:insert-into :foo
|
||||
:columns [:baz]
|
||||
:values [[(sql/array [1 2 3 4])]]})
|
||||
|
|
|
|||
Loading…
Reference in a new issue