Commit 2e756dd2 authored by Max Kanat-Alexander's avatar Max Kanat-Alexander

Bug 577569: [PostgreSQL] Make sql_position explicitly cast both its arguments

to text, to avoid an error when searching "longdescs.isprivate" with the "casesubstring" operator in Search.pm. r=mkanat, a=mkanat (module owner)
parent af5698b4
......@@ -117,7 +117,7 @@ sub sql_istring {
sub sql_position {
my ($self, $fragment, $text) = @_;
return "POSITION($fragment IN ${text}::text)";
return "POSITION(${fragment}::text IN ${text}::text)";
}
sub sql_regexp {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment