fix column name in the UpdateServer query

This commit is contained in:
Dawid Wysokiński 2023-08-30 08:25:53 +02:00
parent cc645ec764
commit 60fe0cf27b
Signed by: Kichiyaki
GPG Key ID: B5445E357FB8B892
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ SELECT version_code::varchar, cnt::bigint from count_servers_by_version_code() r
-- name: UpdateServer :one
UPDATE servers
SET
config = coalesce(sqlc.narg('open'), open)
open = coalesce(sqlc.narg('open'), open)
WHERE key = sqlc.arg('key')
RETURNING *;