[GRASS-SVN] r55992 - grass/trunk/lib/python/temporal
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Apr 25 03:46:19 PDT 2013
Author: huhabla
Date: 2013-04-25 03:46:18 -0700 (Thu, 25 Apr 2013)
New Revision: 55992
Modified:
grass/trunk/lib/python/temporal/core.py
Log:
Fixed wrong command column creation for old tgis databases.
Modified: grass/trunk/lib/python/temporal/core.py
===================================================================
--- grass/trunk/lib/python/temporal/core.py 2013-04-25 09:16:02 UTC (rev 55991)
+++ grass/trunk/lib/python/temporal/core.py 2013-04-25 10:46:18 UTC (rev 55992)
@@ -183,18 +183,18 @@
name = cursor.fetchone()[0]
if name == "raster_base":
db_exists = True
-
+
# Try to add the command column to the space time dataset metadata tables
try:
- c.execute('ALTER TABLE strds_metadata ADD COLUMN command VARCHAR;')
+ cursor.execute('ALTER TABLE strds_metadata ADD COLUMN command VARCHAR;')
except:
pass
try:
- c.execute('ALTER TABLE str3ds_metadata ADD COLUMN command VARCHAR;')
+ cursor.execute('ALTER TABLE str3ds_metadata ADD COLUMN command VARCHAR;')
except:
pass
try:
- c.execute('ALTER TABLE stvds_metadata ADD COLUMN command VARCHAR;')
+ cursor.execute('ALTER TABLE stvds_metadata ADD COLUMN command VARCHAR;')
except:
pass
@@ -213,15 +213,15 @@
if db_exists:
# Try to add the command column to the space time dataset metadata tables
try:
- c.execute('ALTER TABLE strds_metadata ADD COLUMN command VARCHAR;')
+ cursor.execute('ALTER TABLE strds_metadata ADD COLUMN command VARCHAR;')
except:
pass
try:
- c.execute('ALTER TABLE str3ds_metadata ADD COLUMN command VARCHAR;')
+ cursor.execute('ALTER TABLE str3ds_metadata ADD COLUMN command VARCHAR;')
except:
pass
try:
- c.execute('ALTER TABLE stvds_metadata ADD COLUMN command VARCHAR;')
+ cursor.execute('ALTER TABLE stvds_metadata ADD COLUMN command VARCHAR;')
except:
pass
More information about the grass-commit
mailing list