[GRASS-SVN] r55363 - grass/trunk/scripts/v.db.addtable

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Mar 13 07:47:13 PDT 2013


Author: mmetz
Date: 2013-03-13 07:47:13 -0700 (Wed, 13 Mar 2013)
New Revision: 55363

Modified:
   grass/trunk/scripts/v.db.addtable/v.db.addtable.py
Log:
v.db.addtable minor bug fix

Modified: grass/trunk/scripts/v.db.addtable/v.db.addtable.py
===================================================================
--- grass/trunk/scripts/v.db.addtable/v.db.addtable.py	2013-03-13 14:43:24 UTC (rev 55362)
+++ grass/trunk/scripts/v.db.addtable/v.db.addtable.py	2013-03-13 14:47:13 UTC (rev 55363)
@@ -115,7 +115,7 @@
 	grass.verbose(_("Creating table with columns (%s)...") % column_def)
         
         sql = "CREATE TABLE %s (%s)" % (table, column_def)
-        if grass.write_command('db.execute', input = '-', database = database, driver = driver, stdin = sql) != 0:
+        if grass.run_command('db.execute', database = database, driver = driver, sql = sql) != 0:
             grass.fatal(_("Unable to create table <%s>") % table)
     
     # connect the map to the DB:



More information about the grass-commit mailing list