]> granicus.if.org Git - postgis/commitdiff
Do not abort populate_geometry_columns when table can't be altered
authorSandro Santilli <strk@keybit.net>
Tue, 16 Oct 2012 20:42:46 +0000 (20:42 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 16 Oct 2012 20:42:46 +0000 (20:42 +0000)
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

index baac7bb94910eb3db98745dc98af3890e8e91a75..fdc9445bfd2b1f1b3e91a7dcfa05a58131fcf653 100644 (file)
@@ -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;