Fix update count key to :next.jdbc/update-count

This commit is contained in:
Sean Corfield 2019-04-04 20:25:20 -07:00
parent 10929796ff
commit 9abf9f6380

View file

@ -139,8 +139,8 @@
function and initial value.
If the statement yields neither a ResultSet nor generated keys, return
a hash map containing ::update-count and the number of rows updated,
with the supplied function and initial value applied."
a hash map containing :next.jdbc/update-count and the number of rows
updated, with the supplied function and initial value applied."
[^PreparedStatement stmt f init opts]
(if-let [^ResultSet rs (if (.execute stmt)
(.getResultSet stmt)
@ -156,7 +156,7 @@
@result
(recur result)))
init')))
(f init {::update-count (.getUpdateCount stmt)})))
(f init {:next.jdbc/update-count (.getUpdateCount stmt)})))
(extend-protocol p/Executable
java.sql.Connection