[GRASS-SVN] r55483 - grass/trunk/db/drivers/sqlite
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Mar 21 09:07:21 PDT 2013
Author: mmetz
Date: 2013-03-21 09:06:54 -0700 (Thu, 21 Mar 2013)
New Revision: 55483
Modified:
grass/trunk/db/drivers/sqlite/describe.c
Log:
sqlite: report text fields without width as text, not character
Modified: grass/trunk/db/drivers/sqlite/describe.c
===================================================================
--- grass/trunk/db/drivers/sqlite/describe.c 2013-03-21 15:58:22 UTC (rev 55482)
+++ grass/trunk/db/drivers/sqlite/describe.c 2013-03-21 16:06:54 UTC (rev 55483)
@@ -429,7 +429,7 @@
if (streq(word[0], "double") && streq(word[1], "precision"))
return DB_SQL_TYPE_DOUBLE_PRECISION;
if (streq(word[0], "character") && streq(word[1], "varying"))
- return DB_SQL_TYPE_CHARACTER;
+ return DB_SQL_TYPE_TEXT;
}
if (sscanf(buf, "%s %s %s %s", word[0], word[1], word[2], word[3]) == 4 &&
More information about the grass-commit
mailing list