Browse Source

postgres: Assign 1000 to TEXT field length (#412) (#439)

Huidae Cho 5 years ago
parent
commit
018cc86f62
1 changed files with 1 additions and 0 deletions
  1. 1 0
      db/drivers/postgres/describe.c

+ 1 - 0
db/drivers/postgres/describe.c

@@ -207,6 +207,7 @@ int get_column_info(PGresult * res, int col, int *pgtype, int *gpgtype,
 
     case PG_TYPE_TEXT:
 	*sqltype = DB_SQL_TYPE_TEXT;
+	*size = 1000;
 	break;
 
     case PG_TYPE_FLOAT4: