[GRASS-SVN] r31216 - grass-addons/vector/v.colors

svn_grass at osgeo.org svn_grass at osgeo.org
Fri May 2 17:16:33 EDT 2008


Author: neteler
Date: 2008-05-02 17:16:33 -0400 (Fri, 02 May 2008)
New Revision: 31216

Modified:
   grass-addons/vector/v.colors/v.colors
Log:
fix for SQLite

Modified: grass-addons/vector/v.colors/v.colors
===================================================================
--- grass-addons/vector/v.colors/v.colors	2008-05-02 19:08:36 UTC (rev 31215)
+++ grass-addons/vector/v.colors/v.colors	2008-05-02 21:16:33 UTC (rev 31216)
@@ -213,8 +213,8 @@
        echo "ERROR: Creating color column"
        exit 1
     fi
-elif [ "$COLUMN_TYPE" != "CHARACTER" ] ; then
-    echo "ERROR: Column <$GIS_OPT_RGB_COLUMN> is not of compatible type"
+elif [ "$COLUMN_TYPE" != "CHARACTER" -a "$COLUMN_TYPE" != "TEXT" ] ; then
+    echo "ERROR: Column <$GIS_OPT_RGB_COLUMN> is not of compatible type (found $COLUMN_TYPE)"
     exit 1
 else
     NUM_CHARS=`db.describe -c "$TABLE" | grep -i " $GIS_OPT_RGB_COLUMN:" | cut -f4 -d':'`



More information about the grass-commit mailing list