Explorar o código

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 %!s(int64=12) %!d(string=hai) anos
pai
achega
cde1210c09
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {
     case DB_SQL_TYPE_CHARACTER:
-	return "CHARACTER";
+	return "CHARACTER VARYING";
     case DB_SQL_TYPE_NUMERIC:
 	return "NUMERIC";
     case DB_SQL_TYPE_DECIMAL: