[GRASS-SVN] r33971 - grass/branches/develbranch_6/scripts/v.db.join
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Oct 22 06:00:49 EDT 2008
Author: mlennert
Date: 2008-10-22 06:00:49 -0400 (Wed, 22 Oct 2008)
New Revision: 33971
Modified:
grass/branches/develbranch_6/scripts/v.db.join/v.db.join
Log:
added layer parameter to v.db.addcol and driver and database parameters to db.execute. Thanks to aprasad. Closes bug #338.
Modified: grass/branches/develbranch_6/scripts/v.db.join/v.db.join
===================================================================
--- grass/branches/develbranch_6/scripts/v.db.join/v.db.join 2008-10-22 09:59:36 UTC (rev 33970)
+++ grass/branches/develbranch_6/scripts/v.db.join/v.db.join 2008-10-22 10:00:49 UTC (rev 33971)
@@ -103,13 +103,13 @@
i=1
for col in $COLLIST ; do
- v.db.addcol "$GIS_OPT_MAP" col="$col `echo $COLTYPES | cut -d' ' -f$i | tr -s '_' ' '`"
+ v.db.addcol "$GIS_OPT_MAP" layer="$GIS_OPT_LAYER" col="$col `echo $COLTYPES | cut -d' ' -f$i | tr -s '_' ' '`"
if [ $? -ne 0 ] ; then
g.message -e "Cannot continue."
exit 1
fi
echo "UPDATE $maptable SET $col=(SELECT $col
- FROM $GIS_OPT_OTABLE WHERE $GIS_OPT_OTABLE.$GIS_OPT_OCOLUMN=$maptable.$GIS_OPT_COLUMN);" | db.execute
+ FROM $GIS_OPT_OTABLE WHERE $GIS_OPT_OTABLE.$GIS_OPT_OCOLUMN=$maptable.$GIS_OPT_COLUMN);" | db.execute driver=$driver database=$database
i=`expr $i + 1`
done
More information about the grass-commit
mailing list