[GRASS-SVN] r48524 - grass/branches/releasebranch_6_4/scripts/v.db.univar

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


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

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

Modified: grass/branches/releasebranch_6_4/scripts/v.db.univar/v.db.univar
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.db.univar/v.db.univar	2011-09-28 09:25:38 UTC (rev 48523)
+++ grass/branches/releasebranch_6_4/scripts/v.db.univar/v.db.univar	2011-09-28 09:25:47 UTC (rev 48524)
@@ -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