]> granicus.if.org Git - postgis/commitdiff
#1181 TopologySummary is broken causing ambiquous reference. Changed to have local...
authorRegina Obe <lr@pcorp.us>
Thu, 8 Sep 2011 14:23:11 +0000 (14:23 +0000)
committerRegina Obe <lr@pcorp.us>
Thu, 8 Sep 2011 14:23:11 +0000 (14:23 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7823 b70326c6-7e19-0410-871a-916f4a2858ee

topology/sql/manage/TopologySummary.sql

index 55c2425ec48d14ff4e49dbfa232405a46dc0ae25..c4fa826647e736f5a857012387cd535c08f679bc 100644 (file)
@@ -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 <no_rows> 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 ';