From 7994436beda3c43d7484415f526628be0b4f9e93 Mon Sep 17 00:00:00 2001 From: Bart Akeley Date: Sun, 3 Jun 2018 17:12:34 -0500 Subject: [PATCH] ignore case for search text --- src/aretherecookies/queries.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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