From c1861f0b73d713d25cedc556cb4c978aaadc073f Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 17 Jan 2023 15:20:36 +0300 Subject: [PATCH] fix transactions tracing (#58) Signed-off-by: Vasiliy Tolstov 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 }