[GRASS-SVN] r55491 - grass/branches/develbranch_6/db/drivers/sqlite
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Mar 22 09:16:29 PDT 2013
Author: neteler
Date: 2013-03-22 09:16:29 -0700 (Fri, 22 Mar 2013)
New Revision: 55491
Modified:
grass/branches/develbranch_6/db/drivers/sqlite/describe.c
Log:
sqlite: report text fields without width as text, not character (backport of r55483)
Modified: grass/branches/develbranch_6/db/drivers/sqlite/describe.c
===================================================================
--- grass/branches/develbranch_6/db/drivers/sqlite/describe.c 2013-03-22 16:16:05 UTC (rev 55490)
+++ grass/branches/develbranch_6/db/drivers/sqlite/describe.c 2013-03-22 16:16:29 UTC (rev 55491)
@@ -426,7 +426,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