fix: correctly respect maxFailureCount (#7143)

This commit is contained in:
Livio Spring
2024-01-04 16:46:25 +01:00
committed by GitHub
parent d811359dd7
commit c0cef4983a
2 changed files with 4 additions and 23 deletions

View File

@@ -454,7 +454,10 @@ func (h *Handler) executeStatement(ctx context.Context, tx *sql.Tx, currentState
}
var shouldContinue bool
defer func() {
_, err = tx.Exec("RELEASE SAVEPOINT exec")
_, errSave := tx.Exec("RELEASE SAVEPOINT exec")
if err == nil {
err = errSave
}
}()
if err = statement.Execute(tx, h.projection.Name()); err != nil {