[GRASS-SVN] r48071 - grass/trunk/scripts/db.dropcolumn
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Sep 2 11:10:29 EDT 2011
Author: neteler
Date: 2011-09-02 08:10:29 -0700 (Fri, 02 Sep 2011)
New Revision: 48071
Modified:
grass/trunk/scripts/db.dropcolumn/db.dropcolumn.py
Log:
fixed for sqlite
Modified: grass/trunk/scripts/db.dropcolumn/db.dropcolumn.py
===================================================================
--- grass/trunk/scripts/db.dropcolumn/db.dropcolumn.py 2011-09-02 15:05:37 UTC (rev 48070)
+++ grass/trunk/scripts/db.dropcolumn/db.dropcolumn.py 2011-09-02 15:10:29 UTC (rev 48071)
@@ -75,7 +75,7 @@
# http://www.sqlite.org/faq.html#q13
colnames = []
coltypes = []
- for f in grass.db_describe()['cols']:
+ for f in grass.db_describe(table)['cols']:
if f[0] == column:
continue
colnames.append(f[0])
More information about the grass-commit
mailing list