Skip to content

Commit 5310164

Browse files
committed
Drop like name search on template
1 parent fc48397 commit 5310164

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

coderd/database/queries.sql.go

Lines changed: 4 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/queries/templates.sql

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ WHERE
2222
organization_id = @organization_id
2323
ELSE true
2424
END
25-
-- Filter by name, matching on substring
26-
AND CASE
27-
WHEN @name :: text != '' THEN
28-
LOWER(name) LIKE '%' || LOWER(@name) || '%'
29-
ELSE true
30-
END
3125
-- Filter by exact name
3226
AND CASE
3327
WHEN @exact_name :: text != '' THEN

0 commit comments

Comments
 (0)