Respect :gen-fn in execute-one
This commit is contained in:
parent
5019995feb
commit
50fbc5f8f1
1 changed files with 4 additions and 2 deletions
|
|
@ -262,8 +262,10 @@
|
||||||
(rest sql-params)
|
(rest sql-params)
|
||||||
opts)]
|
opts)]
|
||||||
(if-let [rs (stmt->result-set stmt opts)]
|
(if-let [rs (stmt->result-set stmt opts)]
|
||||||
(when (.next rs)
|
(let [gen-fn (get opts :gen-fn map-row-builder)
|
||||||
(datafiable-row (row-builder (map-row-builder rs opts)) this opts))
|
gen (gen-fn rs opts)]
|
||||||
|
(when (.next rs)
|
||||||
|
(datafiable-row (row-builder gen) this opts)))
|
||||||
{:next.jdbc/update-count (.getUpdateCount stmt)})))
|
{:next.jdbc/update-count (.getUpdateCount stmt)})))
|
||||||
(-execute-all [this sql-params opts]
|
(-execute-all [this sql-params opts]
|
||||||
(with-open [stmt (prepare/create this
|
(with-open [stmt (prepare/create this
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue