fix: added missing spaces for tx savepoints

This commit is contained in:
2026-09-09 16:33:47 +02:00
parent 4a967ef002
commit 77a4ccc520
+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
}