|
6 | 6 | *
|
7 | 7 | *
|
8 | 8 | * IDENTIFICATION
|
9 |
| - * $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.48 1998/07/12 21:29:14 momjian Exp $ |
| 9 | + * $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.49 1998/07/15 18:53:40 momjian Exp $ |
10 | 10 | *
|
11 | 11 | *-------------------------------------------------------------------------
|
12 | 12 | */
|
@@ -231,7 +231,7 @@ CopyTo(Relation rel, bool binary, bool oids, FILE *fp, char *delim)
|
231 | 231 | {
|
232 | 232 | out_functions= (FmgrInfo*)palloc(attr_count*sizeof(FmgrInfo));
|
233 | 233 | elements= (Oid*)palloc(attr_count*sizeof(Oid));
|
234 |
| -typmod= (int32*)palloc(attr_count*sizeof(int16)); |
| 234 | +typmod= (int32*)palloc(attr_count*sizeof(int32)); |
235 | 235 | for (i=0;i<attr_count;i++)
|
236 | 236 | {
|
237 | 237 | out_func_oid= (Oid)GetOutputFunction(attr[i]->atttypid);
|
@@ -499,7 +499,7 @@ CopyFrom(Relation rel, bool binary, bool oids, FILE *fp, char *delim)
|
499 | 499 | {
|
500 | 500 | in_functions= (FmgrInfo*)palloc(attr_count*sizeof(FmgrInfo));
|
501 | 501 | elements= (Oid*)palloc(attr_count*sizeof(Oid));
|
502 |
| -typmod= (int32*)palloc(attr_count*sizeof(int16)); |
| 502 | +typmod= (int32*)palloc(attr_count*sizeof(int32)); |
503 | 503 | for (i=0;i<attr_count;i++)
|
504 | 504 | {
|
505 | 505 | in_func_oid= (Oid)GetInputFunction(attr[i]->atttypid);
|
|