Browse Source

fix https://trac.osgeo.org/grass/changeset/41298

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@41299 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 15 years ago
parent
commit
b3e7b9bf24
1 changed files with 2 additions and 2 deletions
  1. 2 2
      scripts/v.db.update/v.db.update.py

+ 2 - 2
scripts/v.db.update/v.db.update.py

@@ -92,7 +92,7 @@ def main():
 
     # checking column types
     try:
-        coltype = grass.vector_columns(map, layer)[column]
+        coltype = grass.vector_columns(map, layer)[column]['type']
     except KeyError:
 	grass.fatal(_('Column <%s> not found') % column)
 
@@ -105,7 +105,7 @@ def main():
 	if not value:
 	    grass.fatal(_('Either value= or qcolumn= must be given'))
 	# we insert a value
-	if coltype['type'].upper() not in ["INTEGER", "DOUBLE PRECISION"]:
+	if coltype.upper() not in ["INTEGER", "DOUBLE PRECISION"]:
 	    value = "'%s'" % value
 
     cmd = "UPDATE %s SET %s=%s" % (table, column, value)