Check that txn is closed

This commit is contained in:
Tobie Morgan Hitchcock 2019-11-30 01:50:19 +00:00
parent 77f0fc9713
commit a675790fef

View file

@ -393,7 +393,7 @@ func (e *executor) operate(ctx context.Context, stm sql.Statement) (res []interf
// current statement, then commit or cancel
// depending on the result error.
if loc {
if loc && e.tx.Closed() == false {
// If there was an error with the query
// then clear the queued changes and