Переглянути джерело

Revert https://trac.osgeo.org/grass/changeset/31583

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@31591 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 17 роки тому
батько
коміт
ed4ffbb0c6
1 змінених файлів з 1 додано та 5 видалено
  1. 1 5
      scripts/v.db.join/v.db.join

+ 1 - 5
scripts/v.db.join/v.db.join

@@ -103,14 +103,10 @@ COLTYPES=`db.describe -c driver="$driver" database="$database" table="$GIS_OPT_o
 
 i=1
 for col in $COLLIST ; do
-  # col already there?
-  v.info --quiet -c map="$GIS_OPT_MAP" layer=$GIS_OPT_LAYER | cut -d'|' -f1,2 | grep "|${col}$" 2>&1 >/dev/null
+  v.db.addcol "$GIS_OPT_MAP" col="$col `echo $COLTYPES | cut -d' ' -f$i | tr -s '_' ' '`"
   if [ $? -ne 0 ] ; then
-     v.db.addcol "$GIS_OPT_MAP" col="$col `echo $COLTYPES | cut -d' ' -f$i | tr -s '_' ' '`"
-     if [ $? -ne 0 ] ; then
 	g.message -e "Cannot continue."
 	exit 1
-     fi
   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