Fix update count key to :next.jdbc/update-count
This commit is contained in:
parent
10929796ff
commit
9abf9f6380
1 changed files with 3 additions and 3 deletions
|
|
@ -139,8 +139,8 @@
|
||||||
function and initial value.
|
function and initial value.
|
||||||
|
|
||||||
If the statement yields neither a ResultSet nor generated keys, return
|
If the statement yields neither a ResultSet nor generated keys, return
|
||||||
a hash map containing ::update-count and the number of rows updated,
|
a hash map containing :next.jdbc/update-count and the number of rows
|
||||||
with the supplied function and initial value applied."
|
updated, with the supplied function and initial value applied."
|
||||||
[^PreparedStatement stmt f init opts]
|
[^PreparedStatement stmt f init opts]
|
||||||
(if-let [^ResultSet rs (if (.execute stmt)
|
(if-let [^ResultSet rs (if (.execute stmt)
|
||||||
(.getResultSet stmt)
|
(.getResultSet stmt)
|
||||||
|
|
@ -156,7 +156,7 @@
|
||||||
@result
|
@result
|
||||||
(recur result)))
|
(recur result)))
|
||||||
init')))
|
init')))
|
||||||
(f init {::update-count (.getUpdateCount stmt)})))
|
(f init {:next.jdbc/update-count (.getUpdateCount stmt)})))
|
||||||
|
|
||||||
(extend-protocol p/Executable
|
(extend-protocol p/Executable
|
||||||
java.sql.Connection
|
java.sql.Connection
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue