[GRASS-SVN] r40590 - grass-addons/database/db.join
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jan 20 23:42:47 EST 2010
Author: neteler
Date: 2010-01-20 23:42:46 -0500 (Wed, 20 Jan 2010)
New Revision: 40590
Modified:
grass-addons/database/db.join/db.join
Log:
bugfixes
Modified: grass-addons/database/db.join/db.join
===================================================================
--- grass-addons/database/db.join/db.join 2010-01-21 03:56:41 UTC (rev 40589)
+++ grass-addons/database/db.join/db.join 2010-01-21 04:42:46 UTC (rev 40590)
@@ -70,7 +70,7 @@
COLLIST=`db.describe -c "$GIS_OPT_TABLE" | grep '^Column ' | sed 's+ ++g' | cut -d':' -f2`
OCOLLIST=`db.describe -c "$GIS_OPT_OTABLE" | grep '^Column ' | sed 's+ ++g' | cut -d':' -f2`
# heck, types may have white space
-OCOLTYPES=`db.describe -c "$GIS_OPT_OTABLE" | grep '^Column ' | sed 's+ ++g' | cut -d':' -f3 | tr -s ' ' '_'`
+OCOLTYPES=`db.describe -c "$GIS_OPT_OTABLE" | grep '^Column ' | cut -d':' -f3 | tr -s ' ' '_'`
i=1
for col in $OCOLLIST ; do
@@ -81,7 +81,7 @@
col=${col}b
fi
done
- echo "ALTER TABLE $GIS_OPT_TABLE ADD COLUMN $col $OCURRTYPE" | db.execute
+ echo "ALTER TABLE $GIS_OPT_TABLE ADD COLUMN $col $CURRTYPE" | db.execute
if [ $? -ne 0 ] ; then
g.message -e "Cannot continue."
exit 1
More information about the grass-commit
mailing list