[GRASS-SVN] r52874 - grass/trunk/scripts/v.db.dropcolumn
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Aug 24 06:15:06 PDT 2012
Author: mmetz
Date: 2012-08-24 06:15:05 -0700 (Fri, 24 Aug 2012)
New Revision: 52874
Modified:
grass/trunk/scripts/v.db.dropcolumn/v.db.dropcolumn.py
Log:
v.db.dropcolumn: use vector database and driver, update comment
Modified: grass/trunk/scripts/v.db.dropcolumn/v.db.dropcolumn.py
===================================================================
--- grass/trunk/scripts/v.db.dropcolumn/v.db.dropcolumn.py 2012-08-24 12:45:26 UTC (rev 52873)
+++ grass/trunk/scripts/v.db.dropcolumn/v.db.dropcolumn.py 2012-08-24 13:15:05 UTC (rev 52874)
@@ -76,10 +76,10 @@
if driver == "sqlite":
# echo "Using special trick for SQLite"
- # http://www.sqlite.org/faq.html#q13
+ # http://www.sqlite.org/faq.html#q11
colnames = []
coltypes = []
- for f in grass.db_describe(table)['cols']:
+ for f in grass.db_describe(table, database = database, driver = driver)['cols']:
if f[0] == column:
continue
colnames.append(f[0])
More information about the grass-commit
mailing list