fixes #1149
This commit is contained in:
@@ -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("SourcePattern(posts.source) LIKE SourcePattern(?) ESCAPE E'\\\\'", q[:source])
|
relation = relation.where("posts.source LIKE ? ESCAPE E'\\\\'", q[:source])
|
||||||
has_constraints!
|
has_constraints!
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user