find_in_set seems to be case insensitive, natively.
This commit is contained in:
parent
52cf8b672c
commit
e32bdb6217
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue