[GRASS-SVN] r39493 - grass/trunk/scripts/db.dropcolumn

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Oct 12 14:46:28 EDT 2009


Author: martinl
Date: 2009-10-12 14:46:27 -0400 (Mon, 12 Oct 2009)
New Revision: 39493

Modified:
   grass/trunk/scripts/db.dropcolumn/db.dropcolumn.py
Log:
db_describes requires 'table' paramater


Modified: grass/trunk/scripts/db.dropcolumn/db.dropcolumn.py
===================================================================
--- grass/trunk/scripts/db.dropcolumn/db.dropcolumn.py	2009-10-12 04:49:16 UTC (rev 39492)
+++ grass/trunk/scripts/db.dropcolumn/db.dropcolumn.py	2009-10-12 18:46:27 UTC (rev 39493)
@@ -69,7 +69,7 @@
     if column == "cat":
 	grass.warning(_("Deleting <%s> column which may be needed to keep table connected to a vector map") % column)
 
-    cols = [f[0] for f in grass.db_describe()['cols']]
+    cols = [f[0] for f in grass.db_describe(table)['cols']]
     if column not in cols:
 	grass.fatal(_("Column <%s> not found in table") % column)
 



More information about the grass-commit mailing list