remove incorrect type hint #256
This commit is contained in:
parent
044de70b49
commit
cd214cb17e
1 changed files with 5 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue