mirror of
https://gitlab.com/wheres-the-tp/server.git
synced 2026-01-25 07:54:57 -06:00
ignore case for search text
This commit is contained in:
parent
422aacbe34
commit
7994436bed
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ WHERE ST_DWithin(loc, ST_SetSRID(ST_Point(:lng, :lat), 4326)::geography, :dist *
|
|||
WHERE
|
||||
ST_DWithin(loc, ST_SetSRID(ST_Point(:lng, :lat), 4326)::geography, :dist * 1609)
|
||||
--~ (when (seq (:categories params)) "AND category IN (:i*:categories)")
|
||||
--~ (when (not-empty (:search params)) "AND name like :v:search")
|
||||
--~ (when (not-empty (:search params)) "AND UPPER(name) like UPPER(:v:search)")
|
||||
|
||||
-- :snip by-distance
|
||||
ORDER BY distance ASC
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue