summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Search.pm
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2008-06-30 04:23:10 +0200
committermkanat%bugzilla.org <>2008-06-30 04:23:10 +0200
commit0a566f92417aa741828413b00585f48f72b5c639 (patch)
tree3bcb312d5c86eb695ecc9e6c3a4a6106fd3cc8a9 /Bugzilla/Search.pm
parentba0b55cebea4cf2dd2085547e38e8f540f10c03b (diff)
downloadbugzilla-0a566f92417aa741828413b00585f48f72b5c639.tar.gz
bugzilla-0a566f92417aa741828413b00585f48f72b5c639.tar.xz
Bug 327344: Create sql_iposition and use it in Search.pm to fix the fact that searching for Turkish characters didn't do case-insensitivity properly.
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat
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 {