]> granicus.if.org Git - postgis/commitdiff
Allow multiple topogeometry columns in one table (again)
authorSandro Santilli <strk@keybit.net>
Sat, 28 Jan 2012 07:44:40 +0000 (07:44 +0000)
committerSandro Santilli <strk@keybit.net>
Sat, 28 Jan 2012 07:44:40 +0000 (07:44 +0000)
Dunno why this piece was missing from previous commit, sorry

git-svn-id: http://svn.osgeo.org/postgis/trunk@8954 b70326c6-7e19-0410-871a-916f4a2858ee

topology/topology.sql.in.c

index 1eda5d473fe94b1990e5d38c7d35eaf3208099ec..63cafed8ff16f341484d5295ebfc5d3b54a1d409 100644 (file)
@@ -626,7 +626,7 @@ BEGIN
        --
        EXECUTE 'ALTER TABLE ' || quote_ident(schema)
                || '.' || quote_ident(tbl) 
-               || ' ADD CONSTRAINT check_topogeom CHECK ('
+               || ' ADD CONSTRAINT "check_topogeom' || col || '" CHECK ('
                || 'topology_id(' || quote_ident(col) || ') = ' || topoid
                || ' AND '
                || 'layer_id(' || quote_ident(col) || ') = ' || newlayer_id