Parcourir la source

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

Huidae Cho il y a 5 ans
Parent
commit
018cc86f62
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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: