2
0
mirror of https://github.com/moebooru/moebooru synced 2025-08-31 05:55:11 +00:00

case-insensitive source search

--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40301
This commit is contained in:
petopeto
2010-10-27 21:35:42 +00:00
parent 5e9e7115f7
commit e353702c07

View File

@@ -95,7 +95,7 @@ module PostSqlMethods
end
if q[:source].is_a?(String)
conds << "p.source LIKE ? ESCAPE E'\\\\'"
conds << "lower(p.source) LIKE lower(?) ESCAPE E'\\\\'"
cond_params << q[:source]
end