[GRASS-SVN] r54638 - grass/trunk/lib/python/pygrass/vector

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jan 15 05:10:36 PST 2013


Author: zarch
Date: 2013-01-15 05:10:35 -0800 (Tue, 15 Jan 2013)
New Revision: 54638

Modified:
   grass/trunk/lib/python/pygrass/vector/sql.py
Log:
Add UPDATE string

Modified: grass/trunk/lib/python/pygrass/vector/sql.py
===================================================================
--- grass/trunk/lib/python/pygrass/vector/sql.py	2013-01-15 13:00:15 UTC (rev 54637)
+++ grass/trunk/lib/python/pygrass/vector/sql.py	2013-01-15 13:10:35 UTC (rev 54638)
@@ -43,7 +43,9 @@
 
 #UPDATE
 UPDATE = "UPDATE {tname} SET {new_col} = {old_col};"
-UPDATE_WHERE = "UPDATE {tname} SET {new_col} = {old_col} WHERE {condition};"
+UPDATE_WHERE = "UPDATE {tname} SET {values} WHERE {condition};"
+UPDATE_COL_WHERE = "UPDATE {tname} SET {new_col} = {old_col} WHERE {condition};"
 
+
 # GET INFO
 PRAGMA = "PRAGMA table_info({tname});"
\ No newline at end of file



More information about the grass-commit mailing list