diff options
Diffstat (limited to 'internal/data/frequencies.sql.go')
| -rw-r--r-- | internal/data/frequencies.sql.go | 10 |
1 files changed, 5 insertions, 5 deletions
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 { |
