]> granicus.if.org Git - postgis/commitdiff
make pre_type check not case sensitive
authorRegina Obe <lr@pcorp.us>
Sun, 23 Aug 2015 05:47:21 +0000 (05:47 +0000)
committerRegina Obe <lr@pcorp.us>
Sun, 23 Aug 2015 05:47:21 +0000 (05:47 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13980 b70326c6-7e19-0410-871a-916f4a2858ee

extras/tiger_geocoder/normalize/pprint_addy.sql

index 558d27ffa8a784ff5b4589581ddfe9032926eb7b..7d0f2d85495c84988dad4e3f6500de54528b2dc0 100644 (file)
@@ -5,7 +5,7 @@
 -- it applies to foreign influenced roads like Camino (for road)
 CREATE OR REPLACE FUNCTION is_pretype(text) RETURNS boolean AS
 $$
-    SELECT EXISTS(SELECT name FROM street_type_lookup WHERE name = upper($1) AND is_hw );
+    SELECT EXISTS(SELECT name FROM street_type_lookup WHERE upper(name) = upper($1) AND is_hw );
 $$
 LANGUAGE sql IMMUTABLE STRICT; /** I know this should be stable but it's practically immutable :) **/