summaryrefslogtreecommitdiffstats
path: root/Bugzilla/DB
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2012-11-03 00:15:51 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2012-11-03 00:15:51 +0100
commit57cc97e041ff65b457fa94a1618699cf9bb9ca13 (patch)
tree6129ec49a04130e8e06d10ccc6010590a11e3916 /Bugzilla/DB
parent63ac4b741efb776ae0e1721cd4c3127e3c4b0e0c (diff)
downloadbugzilla-57cc97e041ff65b457fa94a1618699cf9bb9ca13.tar.gz
bugzilla-57cc97e041ff65b457fa94a1618699cf9bb9ca13.tar.xz
Bug 804505: Oracle crashes when typing "word1 word2" in QuickSearch with "ORA-29907: found duplicate labels in primary invocations"
r=dkl a=LpSolit
Diffstat (limited to 'Bugzilla/DB')
-rw-r--r--Bugzilla/DB/Oracle.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/Bugzilla/DB/Oracle.pm b/Bugzilla/DB/Oracle.pm
index e6beef5cc..fcc4e88a9 100644
--- a/Bugzilla/DB/Oracle.pm
+++ b/Bugzilla/DB/Oracle.pm
@@ -159,10 +159,13 @@ sub sql_from_days{
return " TO_DATE($date,'J') ";
}
+
sub sql_fulltext_search {
- my ($self, $column, $text, $label) = @_;
+ my ($self, $column, $text) = @_;
+ state $label = 0;
$text = $self->quote($text);
trick_taint($text);
+ $label++;
return "CONTAINS($column,$text,$label) > 0", "SCORE($label)";
}