[GRASS-SVN] r33638 - grass/branches/develbranch_6/scripts/v.db.join
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Oct 1 02:16:58 EDT 2008
Author: neteler
Date: 2008-10-01 02:16:57 -0400 (Wed, 01 Oct 2008)
New Revision: 33638
Modified:
grass/branches/develbranch_6/scripts/v.db.join/v.db.join
Log:
Fix case of GIS_OPT_* variables (merge from trunk, r33630)
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-01 06:15:41 UTC (rev 33637)
+++ grass/branches/develbranch_6/scripts/v.db.join/v.db.join 2008-10-01 06:16:57 UTC (rev 33638)
@@ -89,17 +89,17 @@
fi
v.info --quiet -c "$GIS_OPT_MAP" layer="$GIS_OPT_LAYER" | \
- cut -d'|' -f1,2 | grep "|${GIS_OPT_column}$" 2>&1 >/dev/null
+ cut -d'|' -f1,2 | grep "|${GIS_OPT_COLUMN}$" 2>&1 >/dev/null
if [ $? -ne 0 ] ; then
- g.message -e "Column <$GIS_OPT_column> not found in table <$GIS_OPT_MAP> at layer $GIS_OPT_LAYER"
+ g.message -e "Column <$GIS_OPT_COLUMN> not found in table <$GIS_OPT_MAP> at layer $GIS_OPT_LAYER"
exit 1
fi
# we use map DBMI settings
-COLLIST=`db.describe -c driver="$driver" database="$database" table="$GIS_OPT_otable" | grep '^Column ' | cut -d':' -f2`
+COLLIST=`db.describe -c driver="$driver" database="$database" table="$GIS_OPT_OTABLE" | grep '^Column ' | cut -d':' -f2`
# heck, types may have white space
-COLTYPES=`db.describe -c driver="$driver" database="$database" table="$GIS_OPT_otable" | grep '^Column ' | cut -d':' -f3 | tr -s ' ' '_'`
+COLTYPES=`db.describe -c driver="$driver" database="$database" table="$GIS_OPT_OTABLE" | grep '^Column ' | cut -d':' -f3 | tr -s ' ' '_'`
i=1
for col in $COLLIST ; do
@@ -109,7 +109,7 @@
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
i=`expr $i + 1`
done
More information about the grass-commit
mailing list