diff options
author | mkanat%bugzilla.org <> | 2008-06-30 04:23:10 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2008-06-30 04:23:10 +0200 |
commit | 0a566f92417aa741828413b00585f48f72b5c639 (patch) | |
tree | 3bcb312d5c86eb695ecc9e6c3a4a6106fd3cc8a9 /Bugzilla/Search.pm | |
parent | ba0b55cebea4cf2dd2085547e38e8f540f10c03b (diff) | |
download | bugzilla-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.pm | 7 |
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 { |