Revert "fixes #1149"

This reverts commit c481d8d69e.
This commit is contained in:
albert
2013-04-04 18:17:47 -04:00
parent 9aff0f840c
commit 79c0c481cd

View File

@@ -161,7 +161,7 @@ class PostQueryBuilder
relation = relation.where("SourcePattern(posts.source) LIKE ? ESCAPE E'\\\\'", "pixiv/" + $1) relation = relation.where("SourcePattern(posts.source) LIKE ? ESCAPE E'\\\\'", "pixiv/" + $1)
has_constraints! has_constraints!
else else
relation = relation.where("posts.source LIKE ? ESCAPE E'\\\\'", q[:source]) relation = relation.where("SourcePattern(posts.source) LIKE SourcePattern(?) ESCAPE E'\\\\'", q[:source])
has_constraints! has_constraints!
end end
end end