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(
q{
select taxRate from tax where find_in_set(?, country)
and (state='' or find_in_set(?, lower(state)))
and (city='' or find_in_set(?, lower(city)))
and (code='' or find_in_set(?, lower(code)))
and (state='' or find_in_set(?, state))
and (city='' or find_in_set(?, city))
and (code='' or find_in_set(?, code))
},
[ $country, $state, $city, $code, ]);
return $result;