From: Sandro Santilli Date: Thu, 10 Mar 2011 11:33:44 +0000 (+0000) Subject: TopologySummary: Take an empty feature_column as a sign of a "detached" topological... X-Git-Tag: 2.0.0alpha1~1911 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a6134a283536f8a5247978d5aebc66643a9bd395;p=postgis TopologySummary: Take an empty feature_column as a sign of a "detached" topological layer (one having no deploy on user-tables). git-svn-id: http://svn.osgeo.org/postgis/trunk@6891 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/topology/sql/manage/TopologySummary.sql b/topology/sql/manage/TopologySummary.sql index 9c5f4c269..3ea43cffe 100644 --- a/topology/sql/manage/TopologySummary.sql +++ b/topology/sql/manage/TopologySummary.sql @@ -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;