From 82533fa7a583490ea9cebab48c4fc0cdeb3a02f8 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Wed, 27 Nov 2024 21:29:09 +0200 Subject: Fixed sqlc codegen issues --- internal/data/frequencies.sql.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'internal/data/frequencies.sql.go') diff --git a/internal/data/frequencies.sql.go b/internal/data/frequencies.sql.go index 3782309..7460e01 100644 --- a/internal/data/frequencies.sql.go +++ b/internal/data/frequencies.sql.go @@ -17,8 +17,8 @@ INSERT INTO frequencies ( name, hex_color, perms, position ) VALUES ( - ?, ?, ?, ?, ?, - (SELECT COUNT(*) FROM frequencies WHERE network_id = ?) + ?1, ?2, ?3, ?4, ?5, + (SELECT COUNT(*) FROM frequencies WHERE network_id = ?2) ) RETURNING id, network_id, name, hex_color, perms, position ` @@ -195,10 +195,10 @@ func (q *Queries) SetFrequencyPerms(ctx context.Context, arg SetFrequencyPermsPa const swapFrequencies = `-- name: SwapFrequencies :exec UPDATE frequencies SET position = CASE - WHEN position = ? THEN ? - WHEN position = ? THEN ? + WHEN position = ?1 THEN ?2 + WHEN position = ?2 THEN ?1 END -WHERE network_id = ? AND position IN (?, ?) +WHERE network_id = ?3 AND position IN (?1, ?2) ` type SwapFrequenciesParams struct { -- cgit v1.3.1