From 6c412f0605afeb809014553ff7ad28cf9ed5526b Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 1 May 2005 18:56:19 +0000 Subject: Change CREATE TYPE to require datatype output and send functions to have only one argument. (Per recent discussion, the option to accept multiple arguments is pretty useless for user-defined types, and would be a likely source of security holes if it was used.) Simplify call sites of output/send functions to not bother passing more than one argument. --- src/backend/bootstrap/bootstrap.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/backend/bootstrap/bootstrap.c') diff --git a/src/backend/bootstrap/bootstrap.c b/src/backend/bootstrap/bootstrap.c index 82c29b128b4..8da05bbb7d0 100644 --- a/src/backend/bootstrap/bootstrap.c +++ b/src/backend/bootstrap/bootstrap.c @@ -8,7 +8,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/bootstrap/bootstrap.c,v 1.202 2005/04/14 20:03:23 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/bootstrap/bootstrap.c,v 1.203 2005/05/01 18:56:17 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -850,10 +850,8 @@ InsertOneValue(char *value, int i) CStringGetDatum(value), ObjectIdGetDatum(typioparam), Int32GetDatum(-1)); - prt = DatumGetCString(OidFunctionCall3(typoutput, - values[i], - ObjectIdGetDatum(typioparam), - Int32GetDatum(-1))); + prt = DatumGetCString(OidFunctionCall1(typoutput, + values[i])); elog(DEBUG4, "inserted -> %s", prt); pfree(prt); } -- cgit v1.2.3