[GRASS-SVN] r67359 - grass/trunk/scripts/v.db.renamecolumn
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Dec 24 05:02:46 PST 2015
Author: martinl
Date: 2015-12-24 05:02:46 -0800 (Thu, 24 Dec 2015)
New Revision: 67359
Modified:
grass/trunk/scripts/v.db.renamecolumn/v.db.renamecolumn.py
Log:
v.db.renamecolumn: syntax cosmetics
Modified: grass/trunk/scripts/v.db.renamecolumn/v.db.renamecolumn.py
===================================================================
--- grass/trunk/scripts/v.db.renamecolumn/v.db.renamecolumn.py 2015-12-24 09:23:10 UTC (rev 67358)
+++ grass/trunk/scripts/v.db.renamecolumn/v.db.renamecolumn.py 2015-12-24 13:02:46 UTC (rev 67359)
@@ -97,7 +97,7 @@
sql = "UPDATE %s SET %s=%s" % (table, newcol, oldcol)
grass.write_command('db.execute', input = '-', database = database, driver = driver, stdin = sql)
grass.run_command('v.db.dropcolumn', map = map, layer = layer, column = oldcol)
- elif driver in ['mysql']:
+ elif driver == 'mysql':
if oldcoltype.upper() == "CHARACTER":
newcoltype = "varchar(%s)" % (oldcollength)
else:
More information about the grass-commit
mailing list