remove incorrect type hint #256

This commit is contained in:
Sean Corfield 2023-08-09 22:12:38 -07:00
parent 044de70b49
commit cd214cb17e

View file

@ -453,14 +453,13 @@
* `:rollback-only` -- `true` / `false` (`true` will make the transaction
rollback, even if it would otherwise succeed)."
[[sym transactable opts] & body]
(let [con (vary-meta sym assoc :tag 'java.sql.Connection)]
`(let [tx# ~transactable]
(transact tx#
`(let [tx# ~transactable]
(transact tx#
(^{:once true} fn*
[con#]
(let [~con (with-options con# (:options tx# {}))]
[con#] ; this is the unwrapped java.sql.connection
(let [~sym (with-options con# (:options tx# {}))]
~@body))
~(or opts {})))))
~(or opts {}))))
(defn with-logging
"Given a connectable/transactable object and a sql/params logging