]> granicus.if.org Git - postgis/commitdiff
#1366 -- don't rely on state field being capitalized.
authorRegina Obe <lr@pcorp.us>
Mon, 12 Dec 2011 02:20:04 +0000 (02:20 +0000)
committerRegina Obe <lr@pcorp.us>
Mon, 12 Dec 2011 02:20:04 +0000 (02:20 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8355 b70326c6-7e19-0410-871a-916f4a2858ee

extras/tiger_geocoder/tiger_2010/geocode/geocode_intersection.sql

index b31cce6e79f1f9d7a740014574b8404ff73b72ec..9357d068b9b6a02d55257ebc48915a8bfd1949ef 100644 (file)
@@ -30,7 +30,7 @@ BEGIN
         var_na_road := normalize_address('0 ' || roadway1 || ', ' || COALESCE(in_city,'') || ', ' || in_state || ' ' || in_zip);
         var_na_inter1  := normalize_address('0 ' || roadway2 || ', ' || COALESCE(in_city,'') || ', ' || in_state || ' ' || in_zip);
     END IF;
-    in_statefp := statefp FROM state_lookup As s WHERE s.abbrev = in_state;
+    in_statefp := statefp FROM state_lookup As s WHERE s.abbrev = upper(in_state);
     IF COALESCE(in_zip,'') > '' THEN -- limit search to 2 plus or minus the input zip
         var_zip := zip_range(in_zip, -2,2);
     END IF;