From: Regina Obe Date: Sat, 18 Jun 2011 05:33:56 +0000 (+0000) Subject: get rid of unnecessary auto casting X-Git-Tag: 2.0.0alpha1~1406 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=274aa1238a5b4658a4530b7a2903084a199f1a58;p=postgis get rid of unnecessary auto casting git-svn-id: http://svn.osgeo.org/postgis/trunk@7420 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/extras/tiger_geocoder/tiger_2010/geocode/geocode_address.sql b/extras/tiger_geocoder/tiger_2010/geocode/geocode_address.sql index 8e8d597a3..527075b13 100644 --- a/extras/tiger_geocoder/tiger_2010/geocode/geocode_address.sql +++ b/extras/tiger_geocoder/tiger_2010/geocode/geocode_address.sql @@ -56,7 +56,7 @@ BEGIN || ' coalesce(p.name,zip.city,cs.name,co.name)::varchar as place,' || ' s.stusps as state,' || ' sub.zip as zip,' - || ' interpolate_from_address(' || coalesce(quote_literal(parsed.address),'NULL') || ', to_number(sub.fromhn,''99999999'')::integer,' + || ' interpolate_from_address(' || coalesce(parsed.address,'NULL') || ', to_number(sub.fromhn,''99999999'')::integer,' || ' to_number(sub.tohn,''99999999'')::integer, e.the_geom) as address_geom,' || coalesce(' sub.sub_rating + coalesce(levenshtein_ignore_case(' || quote_literal(zip_info.zip[1]) || ', sub.zip),0)', ' sub.sub_rating + coalesce(levenshtein_ignore_case(' || quote_literal(parsed.location) || ', coalesce(p.name,zip.city,cs.name,co.name)),0)',