Skip to content

Commit 64b5782

Browse files
committed
Perform lowercasing in Postgres
1 parent aa34974 commit 64b5782

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/features.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function addQueryPredicates(sql, query) {
128128
}
129129

130130
if (query.filter_name) {
131-
sql += ` AND strpos(lower(name), ${escapeSql(query.filter_name.toLowerCase())}) > 0`;
131+
sql += ` AND strpos(lower(name), lower(${escapeSql(query.filter_name)})) > 0`;
132132
}
133133

134134
return sql;

0 commit comments

Comments
 (0)