From: Regina Obe Date: Thu, 8 Sep 2011 14:23:11 +0000 (+0000) Subject: #1181 TopologySummary is broken causing ambiquous reference. Changed to have local... X-Git-Tag: 2.0.0alpha1~1031 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2af15b011f2123e679386f9f3d9686d0e0d9781;p=postgis #1181 TopologySummary is broken causing ambiquous reference. Changed to have local variable be called var_topology_id so doesn't conflict with table column topology_id git-svn-id: http://svn.osgeo.org/postgis/trunk@7823 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/topology/sql/manage/TopologySummary.sql b/topology/sql/manage/TopologySummary.sql index 55c2425ec..c4fa82664 100644 --- a/topology/sql/manage/TopologySummary.sql +++ b/topology/sql/manage/TopologySummary.sql @@ -22,7 +22,7 @@ $$ DECLARE rec RECORD; rec2 RECORD; - topology_id integer; + var_topology_id integer; n int4; ret text; BEGIN @@ -32,7 +32,7 @@ BEGIN BEGIN SELECT * FROM topology.topology WHERE name = atopology INTO STRICT rec; -- TODO: catch to give a nice error message - topology_id := rec.id; + var_topology_id := rec.id; ret := ret || ' (' || rec.id || '), '; ret := ret || 'SRID ' || rec.srid || ', ' @@ -89,7 +89,7 @@ BEGIN -- TODO: print informations about layers FOR rec IN SELECT * FROM topology.layer l - WHERE l.topology_id = topology_id + WHERE l.topology_id = var_topology_id ORDER by layer_id LOOP -- { ret = ret || 'Layer ' || rec.layer_id || ', type ';