[GRASS-SVN] r51558 - grass/trunk/scripts/db.in.ogr

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Apr 27 09:24:39 EDT 2012


Author: neteler
Date: 2012-04-27 06:24:39 -0700 (Fri, 27 Apr 2012)
New Revision: 51558

Modified:
   grass/trunk/scripts/db.in.ogr/db.in.ogr.py
Log:
fix for key=xxx (thanks to mmetz)

Modified: grass/trunk/scripts/db.in.ogr/db.in.ogr.py
===================================================================
--- grass/trunk/scripts/db.in.ogr/db.in.ogr.py	2012-04-27 12:34:10 UTC (rev 51557)
+++ grass/trunk/scripts/db.in.ogr/db.in.ogr.py	2012-04-27 13:24:39 UTC (rev 51558)
@@ -97,10 +97,10 @@
 
     # rename ID col if requested from cat to new name
     if key:
-	grass.run_command('db.execute', quiet = True, flags = 'f',
+	grass.write_command('db.execute', quiet = True,
                           input = '-', 
 			  stdin = "ALTER TABLE %s ADD COLUMN %s integer" % (output, key) )
-	grass.run_command('db.execute', quiet = True, flags = 'f',
+	grass.write_command('db.execute', quiet = True,
                           input = '-', 
 			  stdin = "UPDATE %s SET %s=cat" % (output, key) )
 



More information about the grass-commit mailing list