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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jan 11 08:38:48 PST 2013


Author: zarch
Date: 2013-01-11 08:38:48 -0800 (Fri, 11 Jan 2013)
New Revision: 54596

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

Modified: grass/trunk/lib/python/pygrass/vector/sql.py
===================================================================
--- grass/trunk/lib/python/pygrass/vector/sql.py	2013-01-11 16:38:40 UTC (rev 54595)
+++ grass/trunk/lib/python/pygrass/vector/sql.py	2013-01-11 16:38:48 UTC (rev 54596)
@@ -34,6 +34,7 @@
 RENAME_COL = "ALTER TABLE {tname} RENAME COLUMN {old_name} TO {new_name};"
 CAST_COL = "ALTER TABLE {tname} ALTER COLUMN {col} SET DATA TYPE {ctype};"
 RENAME_TAB = "ALTER TABLE {old_name} RENAME TO {new_name};"
+INSERT = "INSERT INTO {tname} VALUES ({values})"
 
 #SELECT
 SELECT = "SELECT {cols} FROM {tname};"



More information about the grass-commit mailing list