mirror of
https://github.com/postgres/postgres.git
synced 2025-11-22 12:22:45 +03:00
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
provided by Andrew.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/catalog/pg_proc.c,v 1.163 2009/06/04 18:33:06 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/catalog/pg_proc.c,v 1.164 2009/06/11 14:48:55 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -232,10 +232,11 @@ ProcedureCreate(const char *procedureName,
|
||||
ARR_ELEMTYPE(modesArray) != CHAROID)
|
||||
elog(ERROR, "parameterModes is not a 1-D char array");
|
||||
modes = (char *) ARR_DATA_PTR(modesArray);
|
||||
|
||||
/*
|
||||
* Only the last input parameter can be variadic; if it is, save
|
||||
* its element type. Errors here are just elog since caller should
|
||||
* have checked this already.
|
||||
* Only the last input parameter can be variadic; if it is, save its
|
||||
* element type. Errors here are just elog since caller should have
|
||||
* checked this already.
|
||||
*/
|
||||
for (i = 0; i < allParamCount; i++)
|
||||
{
|
||||
@@ -393,11 +394,11 @@ ProcedureCreate(const char *procedureName,
|
||||
|
||||
/*
|
||||
* If there are existing defaults, check compatibility: redefinition
|
||||
* must not remove any defaults nor change their types. (Removing
|
||||
* a default might cause a function to fail to satisfy an existing
|
||||
* call. Changing type would only be possible if the associated
|
||||
* parameter is polymorphic, and in such cases a change of default
|
||||
* type might alter the resolved output type of existing calls.)
|
||||
* must not remove any defaults nor change their types. (Removing a
|
||||
* default might cause a function to fail to satisfy an existing call.
|
||||
* Changing type would only be possible if the associated parameter is
|
||||
* polymorphic, and in such cases a change of default type might alter
|
||||
* the resolved output type of existing calls.)
|
||||
*/
|
||||
if (oldproc->pronargdefaults != 0)
|
||||
{
|
||||
@@ -430,8 +431,8 @@ ProcedureCreate(const char *procedureName,
|
||||
|
||||
foreach(oldlc, oldDefaults)
|
||||
{
|
||||
Node *oldDef = (Node *) lfirst(oldlc);
|
||||
Node *newDef = (Node *) lfirst(newlc);
|
||||
Node *oldDef = (Node *) lfirst(oldlc);
|
||||
Node *newDef = (Node *) lfirst(newlc);
|
||||
|
||||
if (exprType(oldDef) != exprType(newDef))
|
||||
ereport(ERROR,
|
||||
@@ -453,8 +454,8 @@ ProcedureCreate(const char *procedureName,
|
||||
else
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
|
||||
errmsg("function \"%s\" is not an aggregate function",
|
||||
procedureName)));
|
||||
errmsg("function \"%s\" is not an aggregate function",
|
||||
procedureName)));
|
||||
}
|
||||
if (oldproc->proiswindow != isWindowFunc)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user