Breaking test for #73

Why, PostgreSQL, why?
This commit is contained in:
Sean Corfield 2019-11-12 20:54:45 -08:00
parent e9b7ee80ab
commit 37327c5870

View file

@ -220,3 +220,11 @@ VALUES ('Pear', 'green', 49, 47)
(into [] (map pr-str) (jdbc/plan (ds) ["select * from fruit"]))))
(is (thrown? IllegalArgumentException
(doall (take 3 (jdbc/plan (ds) ["select * from fruit"]))))))
(deftest issue-73
(when (postgres?)
(try
(jdbc/execute-one! (ds) ["drop table temp_table"])
(catch Throwable _))
(jdbc/execute-one! (ds) ["create table temp_table (id serial primary key, deadline timestamp not null)"])
(jdbc/execute-one! (ds) ["insert into temp_table (deadline) values (?)" (java.util.Date.)])))