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:
parent
4e6a2d3a57
commit
c1861f0b73
2
tx.go
2
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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user