diff options
author | Tom Lane | 2000-01-15 22:43:25 +0000 |
---|---|---|
committer | Tom Lane | 2000-01-15 22:43:25 +0000 |
commit | 584e646ad886ab53d23d268bbf62f56882f0bb4e (patch) | |
tree | 666dc7068b4e2d62ddb25bad18cdedb2dcc01b04 /src/backend/bootstrap | |
parent | 0f4a58682153844419b3922f6524bc198135491e (diff) |
Fix a passel of problems with incorrect calls to typinput and typoutput
functions, which would lead to trouble with datatypes that paid attention
to the typelem or typmod parameters to these functions. In particular,
incorrect code in pg_aggregate.c explains the platform-specific failures
that have been reported in NUMERIC avg().
Diffstat (limited to 'src/backend/bootstrap')
-rw-r--r-- | src/backend/bootstrap/bootstrap.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/backend/bootstrap/bootstrap.c b/src/backend/bootstrap/bootstrap.c index 8e9f125996d..306b983370b 100644 --- a/src/backend/bootstrap/bootstrap.c +++ b/src/backend/bootstrap/bootstrap.c @@ -7,7 +7,7 @@ * Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.77 2000/01/15 02:59:27 petere Exp $ + * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.78 2000/01/15 22:43:20 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -680,11 +680,10 @@ InsertOneValue(Oid objectid, char *value, int i) values[i] = fmgr(ap->am_typ.typinput, value, ap->am_typ.typelem, - -1); /* shouldn't have char() or varchar() - * types during boostrapping but just to - * be safe */ + -1); prt = fmgr(ap->am_typ.typoutput, values[i], - ap->am_typ.typelem); + ap->am_typ.typelem, + -1); if (!Quiet) printf("%s ", prt); pfree(prt); |