summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Search.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/Search.pm')
-rw-r--r--Bugzilla/Search.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index d74f09474..272b41152 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -912,8 +912,7 @@ sub GetByWordListSubstr {
if ($word ne "") {
$sql_word = $dbh->quote($word);
trick_taint($sql_word);
- push(@list, $dbh->sql_position(lc($sql_word),
- "LOWER($field)") . " > 0");
+ push(@list, $dbh->sql_iposition($sql_word, $field) . " > 0");
}
}
@@ -1919,7 +1918,7 @@ sub _substring {
my ($ff, $q, $term) = @func_args{qw(ff q term)};
my $dbh = Bugzilla->dbh;
- $$term = $dbh->sql_position(lc($$q), "LOWER($$ff)") . " > 0";
+ $$term = $dbh->sql_iposition($$q, $$ff) . " > 0";
}
sub _notsubstring {
@@ -1928,7 +1927,7 @@ sub _notsubstring {
my ($ff, $q, $term) = @func_args{qw(ff q term)};
my $dbh = Bugzilla->dbh;
- $$term = $dbh->sql_position(lc($$q), "LOWER($$ff)") . " = 0";
+ $$term = $dbh->sql_iposition($$q, $$ff) . " = 0";
}
sub _regexp {