[GRASS-SVN] r54001 - grass/trunk/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Nov 23 12:02:57 PST 2012
Author: martinl
Date: 2012-11-23 12:02:56 -0800 (Fri, 23 Nov 2012)
New Revision: 54001
Modified:
grass/trunk/lib/vector/Vlib/build_pg.c
Log:
vlib/PostGIS Topology: fix `topology.grass` definition (allow overwrite)
Modified: grass/trunk/lib/vector/Vlib/build_pg.c
===================================================================
--- grass/trunk/lib/vector/Vlib/build_pg.c 2012-11-23 19:39:23 UTC (rev 54000)
+++ grass/trunk/lib/vector/Vlib/build_pg.c 2012-11-23 20:02:56 UTC (rev 54001)
@@ -335,7 +335,7 @@
/* add constraint */
sprintf(stmt, "ALTER TABLE \"%s\".\"%s\" ADD CONSTRAINT \"%s_%s_fkey\" "
- "FOREIGN KEY (%s) REFERENCES topology.topology(id)",
+ "FOREIGN KEY (%s) REFERENCES topology.topology(id) ON DELETE CASCADE",
TOPO_SCHEMA, TOPO_TABLE, TOPO_TABLE, TOPO_ID, TOPO_ID);
if (Vect__execute_pg(pg_info->conn, stmt) == -1) {
return -1;
More information about the grass-commit
mailing list