Commit 1f2dc1d0 authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 505826: Allow boolean searches on the Comment field in Oracle.

Patch by Xiaoou Wu <xiaoou.wu@oracle.com> r=mkanat, a=mkanat
parent 6b3943de
......@@ -347,6 +347,10 @@ sub adjust_statement {
# Oracle need no 'AS'
$nonstring =~ s/\bAS\b//ig;
# Take the first 4000 chars for comparison
$nonstring =~ s/\(\s*(longdescs_\d+\.thetext|attachdata_\d+\.thedata)/
\(DBMS_LOB.SUBSTR\($1, 4000, 1\)/ig;
# Look for a LIMIT clause
($limit) = ($nonstring =~ m(/\* LIMIT (\d*) \*/)o);
......
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