From cd214cb17ea8e599dea5e874638393072f7f1981 Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Wed, 9 Aug 2023 22:12:38 -0700 Subject: [PATCH] remove incorrect type hint #256 --- src/next/jdbc.clj | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/next/jdbc.clj b/src/next/jdbc.clj index 8ea448a..16563bb 100644 --- a/src/next/jdbc.clj +++ b/src/next/jdbc.clj @@ -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