Remove unused rsn
Since I changed the default multi-result-set format, the result set number is no longer needed.
This commit is contained in:
parent
2a8571bb14
commit
9d6e7ab145
1 changed files with 8 additions and 8 deletions
|
|
@ -681,9 +681,9 @@
|
|||
(rest sql-params)
|
||||
opts)]
|
||||
(if (:multi-rs opts)
|
||||
(loop [go (.execute stmt) acc [] rsn 0]
|
||||
(loop [go (.execute stmt) acc []]
|
||||
(if-let [rs (stmt->result-set-update-count this stmt go opts)]
|
||||
(recur (.getMoreResults stmt) (conj acc rs) (inc rsn))
|
||||
(recur (.getMoreResults stmt) (conj acc rs))
|
||||
acc))
|
||||
(if-let [rs (stmt->result-set stmt opts)]
|
||||
(datafiable-result-set rs this opts)
|
||||
|
|
@ -719,9 +719,9 @@
|
|||
(rest sql-params)
|
||||
opts)]
|
||||
(if (:multi-rs opts)
|
||||
(loop [go (.execute stmt) acc [] rsn 0]
|
||||
(loop [go (.execute stmt) acc []]
|
||||
(if-let [rs (stmt->result-set-update-count this stmt go opts)]
|
||||
(recur (.getMoreResults stmt) (conj acc rs) (inc rsn))
|
||||
(recur (.getMoreResults stmt) (conj acc rs))
|
||||
acc))
|
||||
(if-let [rs (stmt->result-set stmt opts)]
|
||||
(datafiable-result-set rs this opts)
|
||||
|
|
@ -746,10 +746,10 @@
|
|||
{:next.jdbc/update-count (.getUpdateCount this)}))
|
||||
(-execute-all [this _ opts]
|
||||
(if (:multi-rs opts)
|
||||
(loop [go (.execute this) acc [] rsn 0]
|
||||
(loop [go (.execute this) acc []]
|
||||
(if-let [rs (stmt->result-set-update-count
|
||||
(.getConnection this) this go (assoc opts :return-keys true))]
|
||||
(recur (.getMoreResults this) (conj acc rs) (inc rsn))
|
||||
(recur (.getMoreResults this) (conj acc rs))
|
||||
acc))
|
||||
(if-let [rs (stmt->result-set this (assoc opts :return-keys true))]
|
||||
(datafiable-result-set rs (.getConnection this) opts)
|
||||
|
|
@ -780,10 +780,10 @@
|
|||
(assert (= 1 (count sql-params))
|
||||
"Parameters cannot be provided when executing a non-prepared Statement")
|
||||
(if (:multi-rs opts)
|
||||
(loop [go (.execute this (first sql-params)) acc [] rsn 0]
|
||||
(loop [go (.execute this (first sql-params)) acc []]
|
||||
(if-let [rs (stmt->result-set-update-count
|
||||
(.getConnection this) this go (assoc opts :return-keys true))]
|
||||
(recur (.getMoreResults this) (conj acc rs) (inc rsn))
|
||||
(recur (.getMoreResults this) (conj acc rs))
|
||||
acc))
|
||||
(if-let [rs (stmt-sql->result-set this (first sql-params))]
|
||||
(datafiable-result-set rs (.getConnection this) opts)
|
||||
|
|
|
|||
Loading…
Reference in a new issue