Fixed WithinTx and improved test coverage #46

Merged
robin merged 5 commits from dev into main 2026-09-09 16:42:28 +02:00
Showing only changes of commit 77a4ccc520 - Show all commits
+2 -2
View File
@@ -64,10 +64,10 @@ func (t *Transactor) withinSavepoint(ctx context.Context, tx *sql.Tx, fn func(co
}
if err := fn(ctx); err != nil {
_, _ = tx.ExecContext(ctx, "ROLLBACK TO SAVEPOINT"+name)
_, _ = tx.ExecContext(ctx, "ROLLBACK TO SAVEPOINT "+name)
return err
}
_, err := tx.ExecContext(ctx, "RELEASE SAVEPOINT"+name)
_, err := tx.ExecContext(ctx, "RELEASE SAVEPOINT "+name)
return err
}