]> granicus.if.org Git - postgis/commitdiff
TopologySummary: Take an empty feature_column as a sign of a "detached" topological...
authorSandro Santilli <strk@keybit.net>
Thu, 10 Mar 2011 11:33:44 +0000 (11:33 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 10 Mar 2011 11:33:44 +0000 (11:33 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6891 b70326c6-7e19-0410-871a-916f4a2858ee

topology/sql/manage/TopologySummary.sql

index 9c5f4c269137e988655bd1e90d6d6cd9273812c3..3ea43cffe11ae0d53552c70c005feb671ffc6fdf 100644 (file)
@@ -86,11 +86,15 @@ BEGIN
                 || ', child layer ' || rec.child_id || E'\n';
     END IF;
 
-    ret = ret || ' Deploy: '
-              || quote_ident(rec.schema_name) || '.'
-              || quote_ident(rec.table_name) || '.'
-              || quote_ident(rec.feature_column)
-              || E'\n';
+    ret = ret || ' Deploy: ';
+    IF rec.feature_column != '' THEN
+      ret = ret || quote_ident(rec.schema_name) || '.'
+                || quote_ident(rec.table_name) || '.'
+                || quote_ident(rec.feature_column)
+                || E'\n';
+    ELSE
+      ret = ret || E'NONE (detached)\n';
+    END IF;
   END LOOP;
 
   RETURN ret;