From a675790feffedfd47a464a7338ee3146975dbdac Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Sat, 30 Nov 2019 01:50:19 +0000 Subject: [PATCH] Check that txn is closed --- db/executor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/executor.go b/db/executor.go index 9446fbf7..502f2987 100644 --- a/db/executor.go +++ b/db/executor.go @@ -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