[GRASS-SVN] r41242 - grass/branches/develbranch_6/scripts/v.db.update

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Feb 28 23:28:01 EST 2010


Author: hamish
Date: 2010-02-28 23:28:00 -0500 (Sun, 28 Feb 2010)
New Revision: 41242

Modified:
   grass/branches/develbranch_6/scripts/v.db.update/v.db.update
Log:
show SQL statement in verbose mode

Modified: grass/branches/develbranch_6/scripts/v.db.update/v.db.update
===================================================================
--- grass/branches/develbranch_6/scripts/v.db.update/v.db.update	2010-03-01 02:18:54 UTC (rev 41241)
+++ grass/branches/develbranch_6/scripts/v.db.update/v.db.update	2010-03-01 04:28:00 UTC (rev 41242)
@@ -128,9 +128,11 @@
 fi
 
 if [ -n "$GIS_OPT_WHERE" ] ; then
+    g.message -v message="SQL: \"UPDATE $table SET $GIS_OPT_COLUMN=$value WHERE $GIS_OPT_WHERE\""
     echo "UPDATE $table SET $GIS_OPT_COLUMN=$value WHERE $GIS_OPT_WHERE" |
        db.execute database="${database}" driver=${driver}
 else
+    g.message -v message="SQL: \"UPDATE $table SET $GIS_OPT_COLUMN=$value\""
     echo "UPDATE $table SET $GIS_OPT_COLUMN=$value" | \
        db.execute database="${database}" driver=${driver}
 fi



More information about the grass-commit mailing list