[GRASS-SVN] r49858 - grass/branches/develbranch_6/db/drivers/sqlite

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Dec 22 04:49:06 EST 2011


Author: mmetz
Date: 2011-12-22 01:49:06 -0800 (Thu, 22 Dec 2011)
New Revision: 49858

Modified:
   grass/branches/develbranch_6/db/drivers/sqlite/describe.c
Log:
fix for variable width text (backport from trunk r49802)

Modified: grass/branches/develbranch_6/db/drivers/sqlite/describe.c
===================================================================
--- grass/branches/develbranch_6/db/drivers/sqlite/describe.c	2011-12-21 22:48:33 UTC (rev 49857)
+++ grass/branches/develbranch_6/db/drivers/sqlite/describe.c	2011-12-22 09:49:06 UTC (rev 49858)
@@ -388,7 +388,7 @@
     if (streq(buf, "character")
 	|| streq(buf, "char")
 	|| streq(buf, "varchar"))
-	return DB_SQL_TYPE_CHARACTER;
+	return DB_SQL_TYPE_TEXT;
 
     if (sscanf(buf, "%s %s", word[0], word[1]) == 2) {
 	if (streq(word[0], "double") && streq(word[1], "precision"))



More information about the grass-commit mailing list