fix(coderd/database): match group name case-insensitively in search (#27894)

This commit is contained in:
david-fraley
2026-08-05 14:21:49 -05:00
committed by GitHub
parent dae41eb711
commit d458fe4941
5 changed files with 58 additions and 5 deletions
+4 -2
View File
@@ -32,9 +32,11 @@ SELECT
FROM
groups
WHERE
organization_id = $1
organization_id = @organization_id
AND
name = $2
-- Match group name case-insensitively, consistent with organization and
-- workspace name lookups.
LOWER("name") = LOWER(@name)
LIMIT
1;