Bug 654496: Duplicate bug detection doesn't work when using Oracle

r/a=mkanat


git-svn-id: svn://10.0.0.236/trunk@262662 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkanat%bugzilla.org 2011-08-16 01:48:50 +00:00
parent af736d2749
commit bf37e3e167
3 changed files with 4 additions and 4 deletions

View File

@ -1 +1 @@
7921
7922

View File

@ -559,8 +559,8 @@ sub possible_duplicates {
FROM bugs
INNER JOIN bugs_fulltext ON bugs.bug_id = bugs_fulltext.bug_id
WHERE ($where_sql) $product_sql
ORDER BY relevance DESC, bug_id DESC
LIMIT $sql_limit", {Slice=>{}});
ORDER BY relevance DESC, bug_id DESC " .
$dbh->sql_limit($sql_limit), {Slice=>{}});
my @actual_dupe_ids;
# Resolve duplicates into their ultimate target duplicates.

View File

@ -177,7 +177,7 @@ sub sql_fulltext_search {
my ($self, $column, $text, $label) = @_;
$text = $self->quote($text);
trick_taint($text);
return "CONTAINS($column,$text,$label)", "SCORE($label)";
return "CONTAINS($column,$text,$label) > 0", "SCORE($label)";
}
sub sql_date_format {