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)
|
||||
opts)]
|
||||
(if-let [rs (stmt->result-set stmt opts)]
|
||||
(let [gen-fn (get opts :gen-fn map-row-builder)
|
||||
gen (gen-fn rs opts)]
|
||||
(when (.next rs)
|
||||
(datafiable-row (row-builder (map-row-builder rs opts)) this opts))
|
||||
(datafiable-row (row-builder gen) this opts)))
|
||||
{:next.jdbc/update-count (.getUpdateCount stmt)})))
|
||||
(-execute-all [this sql-params opts]
|
||||
(with-open [stmt (prepare/create this
|
||||
|
|
|
|||
Loading…
Reference in a new issue