diff --git a/src/aretherecookies/queries.sql b/src/aretherecookies/queries.sql index 9328721..bcd8b59 100644 --- a/src/aretherecookies/queries.sql +++ b/src/aretherecookies/queries.sql @@ -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