]> granicus.if.org Git - postgis/commitdiff
Allow multiple TopoGeometry column in the same table
authorSandro Santilli <strk@keybit.net>
Sat, 28 Jan 2012 07:37:01 +0000 (07:37 +0000)
committerSandro Santilli <strk@keybit.net>
Sat, 28 Jan 2012 07:37:01 +0000 (07:37 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8953 b70326c6-7e19-0410-871a-916f4a2858ee

topology/test/regress/addtopogeometrycolumn.sql
topology/test/regress/addtopogeometrycolumn_expected

index 745f5d98152ad018a9d5965dcef90464d626aa3b..a6d9ade84b0178c552c16ed635c896f2dee1a54c 100644 (file)
@@ -8,7 +8,10 @@ select addtopogeometrycolumn('tt','public','feature','tg','BOGUS'); -- fail
 select addtopogeometrycolumn('tt','public','feature','tg','POINT', 0); -- fail
 
 -- Expect first good call returning 1
-select 'good', addtopogeometrycolumn('tt','public','feature','tg','POINT');
+select 'T1', addtopogeometrycolumn('tt','public','feature','tg','POINT');
+
+-- Check that you can add a second topogeometry column to the same table
+select 'T2', addtopogeometrycolumn('tt','public','feature','tg2','LINE');
 
 select l.layer_id, l.schema_name, l.table_name, l.feature_column,
  l.feature_type, l.level, l.child_id 
index e20690d1131b31af055eefacf713d36915b087f5..90af18deb3502d7f43d031982c2672b57160ac82 100644 (file)
@@ -2,6 +2,8 @@ t
 ERROR:  relation "public.feature" does not exist
 ERROR:  Layer type must be one of POINT,LINE,POLYGON,COLLECTION
 ERROR:  Child layer 0 does not exist in topology "tt"
-good|1
+T1|1
+T2|2
 1|public|feature|tg|1|0|
+2|public|feature|tg2|2|0|
 Topology 'tt' dropped