Fix fold statement
This commit is contained in:
parent
c36858ca95
commit
217621cb1c
1 changed files with 1 additions and 1 deletions
|
|
@ -698,7 +698,7 @@
|
||||||
a hash map containing `:next.jdbc/update-count` and the number of rows
|
a hash map containing `:next.jdbc/update-count` and the number of rows
|
||||||
updated, and fold that as a single element collection."
|
updated, and fold that as a single element collection."
|
||||||
[^Statement stmt sql n combinef reducef connectable opts]
|
[^Statement stmt sql n combinef reducef connectable opts]
|
||||||
(if-let [rs (stmt-sql->result-set stmt sql opts)]
|
(if-let [rs (stmt-sql->result-set stmt sql)]
|
||||||
(let [rs-map (mapify-result-set rs opts)
|
(let [rs-map (mapify-result-set rs opts)
|
||||||
chunk (fn [batch] (#'r/fjtask #(r/reduce reducef (combinef) batch)))
|
chunk (fn [batch] (#'r/fjtask #(r/reduce reducef (combinef) batch)))
|
||||||
realize (fn [row] (datafiable-row row connectable opts))]
|
realize (fn [row] (datafiable-row row connectable opts))]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue