[GRASS-SVN] r33980 - grass/trunk/scripts/v.db.join
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Oct 22 12:01:03 EDT 2008
Author: mlennert
Date: 2008-10-22 12:01:03 -0400 (Wed, 22 Oct 2008)
New Revision: 33980
Modified:
grass/trunk/scripts/v.db.join/v.db.join.py
Log:
fix bug #338
Modified: grass/trunk/scripts/v.db.join/v.db.join.py
===================================================================
--- grass/trunk/scripts/v.db.join/v.db.join.py 2008-10-22 15:05:50 UTC (rev 33979)
+++ grass/trunk/scripts/v.db.join/v.db.join.py 2008-10-22 16:01:03 UTC (rev 33980)
@@ -98,14 +98,14 @@
coltype = "%s" % col[1]
colspec = "%s %s" % (colname, coltype)
- if grass.run_command('v.db.addcol', map = map, columns = colspec) != 0:
+ if grass.run_command('v.db.addcol', map = map, columns = colspec, layer = layer) != 0:
grass.fatal("Error creating column <%s>." % colname)
stmt = template.substitute(table = maptable, column = column,
otable = otable, ocolumn = ocolumn,
colname = colname)
- if grass.write_command('db.execute', stdin = stmt) != 0:
+ if grass.write_command('db.execute', stdin = stmt, database = database, driver = driver) != 0:
grass.fatal("Error filling column <%s>." % colname)
# write cmd history:
More information about the grass-commit
mailing list