mirror of
https://github.com/postgres/postgres.git
synced 2025-11-22 12:22:45 +03:00
Default values for function arguments
Pavel Stehule, with some tweaks by Peter Eisentraut
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/catalog/pg_aggregate.c,v 1.97 2008/11/14 19:47:50 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/catalog/pg_aggregate.c,v 1.98 2008/12/04 17:51:26 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -229,7 +229,8 @@ AggregateCreate(const char *aggName,
|
||||
PointerGetDatum(NULL), /* parameterNames */
|
||||
PointerGetDatum(NULL), /* proconfig */
|
||||
1, /* procost */
|
||||
0); /* prorows */
|
||||
0, /* prorows */
|
||||
NULL); /* parameterDefaults */
|
||||
|
||||
/*
|
||||
* Okay to create the pg_aggregate entry.
|
||||
@@ -321,7 +322,7 @@ lookup_agg_function(List *fnName,
|
||||
*/
|
||||
fdresult = func_get_detail(fnName, NIL, nargs, input_types, false,
|
||||
&fnOid, rettype, &retset, &nvargs,
|
||||
&true_oid_array);
|
||||
&true_oid_array, NULL);
|
||||
|
||||
/* only valid case is a normal function not returning a set */
|
||||
if (fdresult != FUNCDETAIL_NORMAL || !OidIsValid(fnOid))
|
||||
|
||||
Reference in New Issue
Block a user