From: Sandro Santilli Date: Tue, 16 Oct 2012 20:42:46 +0000 (+0000) Subject: Do not abort populate_geometry_columns when table can't be altered X-Git-Tag: 2.1.0beta2~524 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fbaed4449c4c6d1c0fe58f7df6aa0346d4c061c2;p=postgis Do not abort populate_geometry_columns when table can't be altered Also print the reason for the limitation. See #2049. git-svn-id: http://svn.osgeo.org/postgis/trunk@10444 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis/postgis.sql.in.c b/postgis/postgis.sql.in.c index baac7bb94..fdc9445bf 100644 --- a/postgis/postgis.sql.in.c +++ b/postgis/postgis.sql.in.c @@ -1713,8 +1713,8 @@ BEGIN ' TYPE geometry(' || postgis_type_name(gtype, gndims, true) || ', ' || gsrid::text || ') '; inserted := inserted + 1; EXCEPTION - WHEN invalid_parameter_value THEN - RAISE WARNING 'Could not convert ''%'' in ''%.%'' to use typmod with srid %, type: % ', quote_ident(gcs.attname), quote_ident(gcs.nspname), quote_ident(gcs.relname), gsrid, postgis_type_name(gtype, gndims, true); + WHEN invalid_parameter_value OR feature_not_supported THEN + RAISE WARNING 'Could not convert ''%'' in ''%.%'' to use typmod with srid %, type %: %', quote_ident(gcs.attname), quote_ident(gcs.nspname), quote_ident(gcs.relname), gsrid, postgis_type_name(gtype, gndims, true), SQLERRM; gc_is_valid := false; END;