Final optimization on stmt-sql return-keys
This commit is contained in:
parent
cd3ddc3181
commit
bb0447a14e
1 changed files with 1 additions and 2 deletions
|
|
@ -880,8 +880,7 @@
|
||||||
(.getConnection this) this go (assoc opts :return-keys true))]
|
(.getConnection this) this go (assoc opts :return-keys true))]
|
||||||
(recur (.getMoreResults this) (conj acc rs))
|
(recur (.getMoreResults this) (conj acc rs))
|
||||||
acc))
|
acc))
|
||||||
(if-let [rs (stmt-sql->result-set this (first sql-params)
|
(if-let [rs (stmt-sql->result-set this (first sql-params))]
|
||||||
(assoc opts :return-keys true))]
|
|
||||||
(datafiable-result-set rs (.getConnection this) opts)
|
(datafiable-result-set rs (.getConnection this) opts)
|
||||||
[{:next.jdbc/update-count (.getUpdateCount this)}])))
|
[{:next.jdbc/update-count (.getUpdateCount this)}])))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue