diff options
Diffstat (limited to 'src/include/nodes/parsenodes.h')
-rw-r--r-- | src/include/nodes/parsenodes.h | 37 |
1 files changed, 16 insertions, 21 deletions
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index 71552abbc76..1b1f01bd28f 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -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.161 2002/03/19 02:18:24 momjian Exp $ + * $Id: parsenodes.h,v 1.162 2002/03/20 19:45:02 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -408,23 +408,6 @@ typedef struct DefElem /**************************************************************************** - * Nodes for a Domain Creation tree - ****************************************************************************/ -/* ---------------------- - * CreateDomain Statement - * ---------------------- - * Down here as it required TypeName to be defined first. - */ -typedef struct CreateDomainStmt -{ - NodeTag type; - char *domainname; /* name of domain to create */ - TypeName *typename; /* the typecast */ - List *constraints; /* constraints (list of Constraint nodes) */ -} CreateDomainStmt; - - -/**************************************************************************** * Nodes for a Query tree ****************************************************************************/ @@ -1056,12 +1039,24 @@ typedef struct VersionStmt typedef struct DefineStmt { NodeTag type; - int defType; /* OPERATOR|P_TYPE|AGGREGATE */ + int defType; /* OPERATOR|TYPE_P|AGGREGATE */ char *defname; List *definition; /* a list of DefElem */ } DefineStmt; /* ---------------------- + * Create Domain Statement + * ---------------------- + */ +typedef struct CreateDomainStmt +{ + NodeTag type; + char *domainname; /* name of domain to create */ + TypeName *typename; /* the base type */ + List *constraints; /* constraints (list of Constraint nodes) */ +} CreateDomainStmt; + +/* ---------------------- * Drop Table|Sequence|View|Index|Rule|Type Statement * ---------------------- */ @@ -1071,8 +1066,8 @@ typedef struct DefineStmt #define DROP_VIEW 3 #define DROP_INDEX 4 #define DROP_RULE 5 -#define DROP_TYPE_P 6 -#define DROP_DOMAIN_P 7 +#define DROP_TYPE 6 +#define DROP_DOMAIN 7 typedef struct DropStmt { |