diff --git a/test/next/jdbc/middleware_test.clj b/test/next/jdbc/middleware_test.clj index 681eb67..576fcd2 100644 --- a/test/next/jdbc/middleware_test.clj +++ b/test/next/jdbc/middleware_test.clj @@ -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"))) diff --git a/test/next/jdbc_test.clj b/test/next/jdbc_test.clj index 7bb596a..d09a1c6 100644 --- a/test/next/jdbc_test.clj +++ b/test/next/jdbc_test.clj @@ -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))))))