[GRASS-SVN] r48506 -
grass/branches/develbranch_6/scripts/v.db.univar
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Sep 27 17:23:07 EDT 2011
Author: neteler
Date: 2011-09-27 14:23:07 -0700 (Tue, 27 Sep 2011)
New Revision: 48506
Modified:
grass/branches/develbranch_6/scripts/v.db.univar/v.db.univar
Log:
fix crash
Modified: grass/branches/develbranch_6/scripts/v.db.univar/v.db.univar
===================================================================
--- grass/branches/develbranch_6/scripts/v.db.univar/v.db.univar 2011-09-27 19:07:50 UTC (rev 48505)
+++ grass/branches/develbranch_6/scripts/v.db.univar/v.db.univar 2011-09-27 21:23:07 UTC (rev 48506)
@@ -114,6 +114,8 @@
drv="driver=$GIS_OPT_DRIVER"
fi
+# strip off mapset
+GIS_OPT_TABLE=`echo $GIS_OPT_TABLE | cut -d'@' -f1`
if [ -z "$GIS_OPT_WHERE" ] ; then
db.select table="$GIS_OPT_TABLE" ${db} ${drv} sql="select $GIS_OPT_COLUMN from $GIS_OPT_TABLE" -c > "$TEMPFILE"
else
More information about the grass-commit
mailing list