ignore case for search text

This commit is contained in:
Bart Akeley 2018-06-03 17:12:34 -05:00
parent 422aacbe34
commit 7994436bed

View file

@ -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