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(
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue