[GRASS-SVN] r43501 -
grass/branches/releasebranch_6_4/scripts/v.db.update
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Sep 18 10:50:11 EDT 2010
Author: neteler
Date: 2010-09-18 14:50:11 +0000 (Sat, 18 Sep 2010)
New Revision: 43501
Modified:
grass/branches/releasebranch_6_4/scripts/v.db.update/v.db.update
Log:
backport: show SQL statement in verbose mode
Modified: grass/branches/releasebranch_6_4/scripts/v.db.update/v.db.update
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.db.update/v.db.update 2010-09-18 14:48:58 UTC (rev 43500)
+++ grass/branches/releasebranch_6_4/scripts/v.db.update/v.db.update 2010-09-18 14:50:11 UTC (rev 43501)
@@ -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