Merge remote-tracking branch 'origin/master'

This commit is contained in:
M_Kececi
2026-06-24 20:35:55 +03:00
parent 10fd77bece
commit ec21dfac70
2 changed files with 58 additions and 10 deletions

View File

@@ -709,6 +709,11 @@ func productSeriesApplyVariant(ctx context.Context, pg *sql.DB, v productSeriesA
return 0, 0, err
}
defer tx.Rollback()
// Tag the DB session for audit attribution (scheduler vs http handler).
// This affects only statements in this transaction.
_, _ = tx.ExecContext(ctx, `SELECT set_config('application_name', current_setting('application_name') || '|series-auto', true)`)
if _, err := tx.ExecContext(ctx, `
DELETE FROM zbggseri
WHERE mmitem_id=$1