diff options
| author | Tom Lane | 2005-05-01 18:56:19 +0000 |
|---|---|---|
| committer | Tom Lane | 2005-05-01 18:56:19 +0000 |
| commit | 6c412f0605afeb809014553ff7ad28cf9ed5526b (patch) | |
| tree | 5540a678c19dcfa1a7023e0f59a970fe2a9a79ee /src/pl/plpgsql | |
| parent | ae793ff63cb9167ea6d0f24ca018ffabad157ece (diff) | |
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.
Diffstat (limited to 'src/pl/plpgsql')
| -rw-r--r-- | src/pl/plpgsql/src/pl_exec.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/pl/plpgsql/src/pl_exec.c b/src/pl/plpgsql/src/pl_exec.c index fe2d42ecf38..71ded9da05f 100644 --- a/src/pl/plpgsql/src/pl_exec.c +++ b/src/pl/plpgsql/src/pl_exec.c @@ -3,7 +3,7 @@ * procedural language * * IDENTIFICATION - * $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.135 2005/04/07 14:53:04 tgl Exp $ + * $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.136 2005/05/01 18:56:19 tgl Exp $ * * This software is copyrighted by Jan Wieck - Hamburg. * @@ -3881,15 +3881,11 @@ static char * convert_value_to_string(Datum value, Oid valtype) { Oid typoutput; - Oid typioparam; bool typIsVarlena; - getTypeOutputInfo(valtype, &typoutput, &typioparam, &typIsVarlena); + getTypeOutputInfo(valtype, &typoutput, &typIsVarlena); - return DatumGetCString(OidFunctionCall3(typoutput, - value, - ObjectIdGetDatum(typioparam), - Int32GetDatum(-1))); + return DatumGetCString(OidFunctionCall1(typoutput, value)); } /* ---------- |
