aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2026-07-31 15:17:06 +0200
committerStefan Majewsky <majewsky@gmx.net>2026-07-31 15:17:06 +0200
commitc33a7c7b3be534323d59383149f8e6470137e88d (patch)
tree2b3820acbf9483278045998bb925a668677b7ada
parent24df4769c3a97fcd838c59941ca1eef61dd3d0b2 (diff)
downloadgo-gg-c33a7c7b3be534323d59383149f8e6470137e88d.tar.gz
pgruntime: fix parameter syntax in migration query
-rw-r--r--pgruntime/behavior.go2
1 files changed, 1 insertions, 1 deletions
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)
}