mirror of
https://github.com/postgres/postgres.git
synced 2025-11-21 00:42:43 +03:00
Extend syntax of CREATE FUNCTION to resemble SQL99.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: nodes.h,v 1.107 2002/05/12 23:43:04 tgl Exp $
|
||||
* $Id: nodes.h,v 1.108 2002/05/17 18:32:52 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -160,7 +160,7 @@ typedef enum NodeTag
|
||||
T_CommentStmt,
|
||||
T_FetchStmt,
|
||||
T_IndexStmt,
|
||||
T_ProcedureStmt,
|
||||
T_CreateFunctionStmt,
|
||||
T_RemoveAggrStmt,
|
||||
T_RemoveFuncStmt,
|
||||
T_RemoveOperStmt,
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: parsenodes.h,v 1.177 2002/05/17 01:19:19 tgl Exp $
|
||||
* $Id: parsenodes.h,v 1.178 2002/05/17 18:32:52 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -1200,17 +1200,16 @@ typedef struct IndexStmt
|
||||
* Create Function Statement
|
||||
* ----------------------
|
||||
*/
|
||||
typedef struct ProcedureStmt
|
||||
typedef struct CreateFunctionStmt
|
||||
{
|
||||
NodeTag type;
|
||||
bool replace; /* T => replace if already exists */
|
||||
List *funcname; /* qualified name of function to create */
|
||||
List *argTypes; /* list of argument types (TypeName nodes) */
|
||||
TypeName *returnType; /* the return type */
|
||||
List *options; /* a list of DefElem */
|
||||
List *withClause; /* a list of DefElem */
|
||||
List *as; /* definition of function body */
|
||||
char *language; /* C, SQL, etc */
|
||||
} ProcedureStmt;
|
||||
} CreateFunctionStmt;
|
||||
|
||||
/* ----------------------
|
||||
* Drop Aggregate Statement
|
||||
|
||||
Reference in New Issue
Block a user