From b76f4892970e94ea0c8c0927f023c273e8484e54 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 17 Jan 2023 15:14:12 +0300 Subject: [PATCH] fix transactions tracing Signed-off-by: Vasiliy Tolstov --- tx.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tx.go b/tx.go index e0b6bd9..6c0afc0 100644 --- a/tx.go +++ b/tx.go @@ -38,6 +38,7 @@ func (w *wrapperTx) Commit() error { } w.ctx = nil + w.conn.ctx = nil return err } @@ -61,6 +62,7 @@ func (w *wrapperTx) Rollback() error { } w.ctx = nil + w.conn.ctx = nil return err }