mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
Remove the obsolete WITH clause of CREATE FUNCTION.
This clause was superseded by SQL-standard syntax back in 7.3. We've kept it around for backwards-compatibility purposes ever since; but 15 years seems like long enough for that, especially seeing that there are undocumented weirdnesses in how it interacts with the SQL-standard syntax for specifying the same options. Michael Paquier, per an observation by Daniel Gustafsson; some small cosmetic adjustments to nearby code by me. Discussion: https://postgr.es/m/20180115022748.GB1724@paquier.xyz
This commit is contained in:
@ -3217,7 +3217,7 @@ _copyClosePortalStmt(const ClosePortalStmt *from)
|
||||
static CallStmt *
|
||||
_copyCallStmt(const CallStmt *from)
|
||||
{
|
||||
CallStmt *newnode = makeNode(CallStmt);
|
||||
CallStmt *newnode = makeNode(CallStmt);
|
||||
|
||||
COPY_NODE_FIELD(funccall);
|
||||
|
||||
@ -3422,13 +3422,12 @@ _copyCreateFunctionStmt(const CreateFunctionStmt *from)
|
||||
{
|
||||
CreateFunctionStmt *newnode = makeNode(CreateFunctionStmt);
|
||||
|
||||
COPY_SCALAR_FIELD(is_procedure);
|
||||
COPY_SCALAR_FIELD(replace);
|
||||
COPY_NODE_FIELD(funcname);
|
||||
COPY_NODE_FIELD(parameters);
|
||||
COPY_NODE_FIELD(returnType);
|
||||
COPY_SCALAR_FIELD(is_procedure);
|
||||
COPY_NODE_FIELD(options);
|
||||
COPY_NODE_FIELD(withClause);
|
||||
|
||||
return newnode;
|
||||
}
|
||||
|
Reference in New Issue
Block a user