From c33a7c7b3be534323d59383149f8e6470137e88d Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Fri, 31 Jul 2026 15:17:06 +0200 Subject: pgruntime: fix parameter syntax in migration query --- pgruntime/behavior.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pgruntime') diff --git a/pgruntime/behavior.go b/pgruntime/behavior.go index 54766ed..9fb8662 100644 --- a/pgruntime/behavior.go +++ b/pgruntime/behavior.go @@ -115,7 +115,7 @@ func applyMigrations(ctx context.Context, db gsql.ConnectionHandle, migrations m if err != nil { return fmt.Errorf("could not execute schema migration: %w", err) } - _, err = execQuery(ctx, db, `UPDATE schema_migrations SET version = %d, dirty = FALSE`, []any{version}) + _, err = execQuery(ctx, db, `UPDATE schema_migrations SET version = $1, dirty = FALSE`, []any{version}) if err != nil { return fmt.Errorf("could not update schema_migrations record: %w", err) } -- cgit v1.3.1