From fbaed4449c4c6d1c0fe58f7df6aa0346d4c061c2 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 16 Oct 2012 20:42:46 +0000 Subject: [PATCH] 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 --- postgis/postgis.sql.in.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.50.1