浏览代码

db_sqltype_name(): report variable-width string instead of fixed-width n-character string

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54684 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 年之前
父节点
当前提交
cde1210c09
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/db/dbmi_base/sqltype.c

+ 1 - 1
lib/db/dbmi_base/sqltype.c

@@ -29,7 +29,7 @@ const char *db_sqltype_name(int sqltype)
 
 
     switch (sqltype) {
     switch (sqltype) {
     case DB_SQL_TYPE_CHARACTER:
     case DB_SQL_TYPE_CHARACTER:
-	return "CHARACTER";
+	return "CHARACTER VARYING";
     case DB_SQL_TYPE_NUMERIC:
     case DB_SQL_TYPE_NUMERIC:
 	return "NUMERIC";
 	return "NUMERIC";
     case DB_SQL_TYPE_DECIMAL:
     case DB_SQL_TYPE_DECIMAL: