]> granicus.if.org Git - postgis/commitdiff
tiger normalize, pagc_normalize integer out of range
authorRegina Obe <lr@pcorp.us>
Sun, 25 Sep 2016 03:41:38 +0000 (03:41 +0000)
committerRegina Obe <lr@pcorp.us>
Sun, 25 Sep 2016 03:41:38 +0000 (03:41 +0000)
references #3641 for PostGIS 2.3.0

git-svn-id: http://svn.osgeo.org/postgis/trunk@15136 b70326c6-7e19-0410-871a-916f4a2858ee

extras/tiger_geocoder/normalize/normalize_address.sql
extras/tiger_geocoder/pagc_normalize/pagc_normalize_address.sql

index fa45d9ff59ed2619076d37bab935c3c98a807900..747e705b5128b8484069e5791973b273602166ca 100644 (file)
@@ -697,7 +697,7 @@ BEGIN
   END IF;
 
  -- For address number only put numbers and stop if reach a non-number e.g. 123-456 will return 123
-  result.address := to_number(substring(addressString, '[0-9]+'), '99999999999');
+  result.address := to_number(substring(addressString, '[0-9]+'),  '99999999');
    --get rid of extraneous spaces before we return
   result.zip := trim(zipString);
   result.streetName := trim(result.streetName);
index 4b0efae9f04634876958a6bd12ca5bcbaa44f1e2..0469cda3fe7b03c96b94d483f965b21ef0dae860 100644 (file)
@@ -31,7 +31,7 @@ BEGIN
    COALESCE(', ' || var_parse_rec.city,'') || COALESCE(', ' || var_parse_rec.state, '') || COALESCE(' ' || var_parse_rec.zip,'')  ) ;
 
  -- For address number only put numbers and stop if reach a non-number e.g. 123-456 will return 123
-  result.address := to_number(substring(var_rec.house_num, '[0-9]+'), '99999999999');
+  result.address := to_number(substring(var_rec.house_num, '[0-9]+'), '99999999');
    --get rid of extraneous spaces before we return
   result.zip := COALESCE(var_rec.postcode,result.zip);
   result.streetName := trim(var_rec.name);