fix transactions tracing (#58)

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2023-01-17 15:20:36 +03:00 committed by GitHub
parent 4e6a2d3a57
commit c1861f0b73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
tx.go
View File

@ -38,6 +38,7 @@ func (w *wrapperTx) Commit() error {
} }
w.ctx = nil w.ctx = nil
w.conn.ctx = nil
return err return err
} }
@ -61,6 +62,7 @@ func (w *wrapperTx) Rollback() error {
} }
w.ctx = nil w.ctx = nil
w.conn.ctx = nil
return err return err
} }