fix arguments to jdbc query

This commit is contained in:
Gered 2016-05-22 11:38:18 -04:00
parent 01fdd50ebe
commit 871e690e1c

View file

@ -16,7 +16,7 @@
(db-or-db-fn namespace)
db-or-db-fn)
start (System/currentTimeMillis)
data (j/query db (hsql/format (apply query-fn parameters)) :row-fn row-fn)
data (j/query db (hsql/format (apply query-fn parameters)) {:row-fn row-fn})
time (- (System/currentTimeMillis) start)]
(when (>= time 1000) (warn id "took" time "msecs"))
data))