Forráskód Böngészése

Fix update method in the Attrs class

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54912 15284696-431f-4ddb-bdfa-cd5b030d7da7
Pietro Zambelli 12 éve
szülő
commit
4189504a67
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      lib/python/pygrass/vector/geometry.py

+ 2 - 2
lib/python/pygrass/vector/geometry.py

@@ -143,9 +143,9 @@ class Attrs(object):
         .."""
         if self.writable:
             #UPDATE {tname} SET {new_col} = {old_col} WHERE {condition}
+            values = '%s=%r' % (key, value)
             self.table.execute(sql.UPDATE_WHERE.format(tname=self.table.name,
-                                                       new_col=key,
-                                                       old_col=repr(value),
+                                                       values=values,
                                                        condition=self.cond))
             #self.table.conn.commit()
         else: