From e32bdb621729141b558b0f9996aa98ab149c987f Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Fri, 7 Mar 2008 02:37:13 +0000 Subject: [PATCH] find_in_set seems to be case insensitive, natively. --- lib/WebGUI/Shop/Tax.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/WebGUI/Shop/Tax.pm b/lib/WebGUI/Shop/Tax.pm index dfffb5631..e0dd4ee41 100644 --- a/lib/WebGUI/Shop/Tax.pm +++ b/lib/WebGUI/Shop/Tax.pm @@ -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;