diff options
| author | Kyren223 <Kyren223@proton.me> | 2024-11-27 21:29:09 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2024-11-27 21:29:09 +0200 |
| commit | 82533fa7a583490ea9cebab48c4fc0cdeb3a02f8 (patch) | |
| tree | b8ef0197652e7385233230dbea5afaa4c8f82445 /internal/data/frequencies.sql.go | |
| parent | 180bb557b1f82ce81fb042442b9bce75bbefb301 (diff) | |
Fixed sqlc codegen issues
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 { |
