find_in_set seems to be case insensitive, natively.

This commit is contained in:
Colin Kuskie 2008-03-07 02:37:13 +00:00
parent 52cf8b672c
commit e32bdb6217

View file

@ -226,9 +226,9 @@ sub getTaxRates {
my $result = $self->session->db->buildArrayRef( my $result = $self->session->db->buildArrayRef(
q{ q{
select taxRate from tax where find_in_set(?, country) select taxRate from tax where find_in_set(?, country)
and (state='' or find_in_set(?, lower(state))) and (state='' or find_in_set(?, state))
and (city='' or find_in_set(?, lower(city))) and (city='' or find_in_set(?, city))
and (code='' or find_in_set(?, lower(code))) and (code='' or find_in_set(?, code))
}, },
[ $country, $state, $city, $code, ]); [ $country, $state, $city, $code, ]);
return $result; return $result;