Tidy up test output

This commit is contained in:
Sean Corfield 2019-11-13 09:42:42 -08:00
parent ccf83a2c0a
commit 9626d29d5c
2 changed files with 6 additions and 2 deletions

View file

@ -74,4 +74,4 @@
:sql-params-fn start-fn
:execute-fn exec-fn})
sql-p)
(println (:calls @timing) (long (:total @timing)))))
(println (db) (:calls @timing) "calls took" (long (:total @timing)) "nanoseconds")))

View file

@ -227,4 +227,8 @@ VALUES ('Pear', 'green', 49, 47)
(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.)])))
(try
(jdbc/execute-one! (ds) ["insert into temp_table (deadline) values (?)" (java.util.Date.)])
(catch Throwable t
(println "Issue #73: PostgreSQL cannot convert java.util.Date to timestamp by default?")
(println (ex-message t))))))