[GRASS-SVN] r52596 - grass-addons/grass7/vector/v.build.pg

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 8 04:01:02 PDT 2012


Author: martinl
Date: 2012-08-08 04:01:02 -0700 (Wed, 08 Aug 2012)
New Revision: 52596

Modified:
   grass-addons/grass7/vector/v.build.pg/v.build.pg.py
Log:
v.build.pg: fix UPDATE statement (include also schema)


Modified: grass-addons/grass7/vector/v.build.pg/v.build.pg.py
===================================================================
--- grass-addons/grass7/vector/v.build.pg/v.build.pg.py	2012-08-08 10:37:13 UTC (rev 52595)
+++ grass-addons/grass7/vector/v.build.pg/v.build.pg.py	2012-08-08 11:01:02 UTC (rev 52596)
@@ -133,8 +133,9 @@
     
     # build topology
     grass.message(_("Building PostGIS topology..."))
-    execute("UPDATE %s SET %s = topology.toTopoGeom(%s, '%s', 1, %s)" % \
-                (table, options['topo_column'], vInfo['geometry_column'], options['topo_schema'], options['tolerance']),
+    execute("UPDATE %s.%s SET %s = topology.toTopoGeom(%s, '%s', 1, %s)" % \
+                (schema, table, options['topo_column'], vInfo['geometry_column'],
+                 options['topo_schema'], options['tolerance']),
             useSelect = False)
     
     # report summary



More information about the grass-commit mailing list