mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
fix: support substring search on workspace name (#2096)
This commit is contained in:
@ -3658,10 +3658,10 @@ WHERE
|
||||
owner_id = $3
|
||||
ELSE true
|
||||
END
|
||||
-- Filter by name
|
||||
-- Filter by name, matching on substring
|
||||
AND CASE
|
||||
WHEN $4 :: text != '' THEN
|
||||
LOWER(name) = LOWER($4)
|
||||
LOWER(name) LIKE '%' || LOWER($4) || '%'
|
||||
ELSE true
|
||||
END
|
||||
`
|
||||
|
Reference in New Issue
Block a user