[GRASS-SVN] r48523 - grass/branches/develbranch_6/scripts/v.db.univar

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Sep 28 05:25:38 EDT 2011


Author: neteler
Date: 2011-09-28 02:25:38 -0700 (Wed, 28 Sep 2011)
New Revision: 48523

Modified:
   grass/branches/develbranch_6/scripts/v.db.univar/v.db.univar
Log:
mapset stripping no longer needed

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-28 07:38:25 UTC (rev 48522)
+++ grass/branches/develbranch_6/scripts/v.db.univar/v.db.univar	2011-09-28 09:25:38 UTC (rev 48523)
@@ -114,12 +114,10 @@
     drv="driver=$GIS_OPT_DRIVER"
 fi
 
-# strip off mapset for SQL
-MYGIS_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 $MYGIS_OPT_TABLE" -c > "$TEMPFILE"
+   db.select table="$GIS_OPT_TABLE" ${db} ${drv} sql="select $GIS_OPT_COLUMN from $GIS_OPT_TABLE" -c > "$TEMPFILE"
 else
-   db.select table="$GIS_OPT_TABLE" ${db} ${drv} sql="select $GIS_OPT_COLUMN from $MYGIS_OPT_TABLE WHERE $GIS_OPT_WHERE" -c > "$TEMPFILE"
+   db.select table="$GIS_OPT_TABLE" ${db} ${drv} sql="select $GIS_OPT_COLUMN from $GIS_OPT_TABLE WHERE $GIS_OPT_WHERE" -c > "$TEMPFILE"
 fi
 
 



More information about the grass-commit mailing list