diff options
author | Thomas G. Lockhart <lockhart@fourpalms.org> | 1997-09-01 06:04:59 +0000 |
---|---|---|
committer | Thomas G. Lockhart <lockhart@fourpalms.org> | 1997-09-01 06:04:59 +0000 |
commit | 1bf90bc7d346fc182d0d68bfecfe1dcaba256349 (patch) | |
tree | 9a9b8d031540ee199e9cb5a440cdbb8a94158b28 /src/include/nodes/parsenodes.h | |
parent | 570620c5698b0c76b26a3ec71692df29375cad16 (diff) | |
download | postgresql-1bf90bc7d346fc182d0d68bfecfe1dcaba256349.tar.gz postgresql-1bf90bc7d346fc182d0d68bfecfe1dcaba256349.zip |
Add structure for subselects.
Add field to support "WITH TIME ZONE".
Diffstat (limited to 'src/include/nodes/parsenodes.h')
-rw-r--r-- | src/include/nodes/parsenodes.h | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index 19f551559e4..81e635cebad 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: parsenodes.h,v 1.21 1997/08/31 11:43:09 vadim Exp $ + * $Id: parsenodes.h,v 1.22 1997/09/01 06:04:59 thomas Exp $ * *------------------------------------------------------------------------- */ @@ -554,9 +554,9 @@ typedef struct CursorStmt { List *targetList; /* the target list (of ResTarget) */ List *fromClause; /* the from clause */ Node *whereClause; /* qualifications */ - List *groupClause; /* group by clause */ + List *groupClause; /* group by clause */ List *sortClause; /* sort clause (a list of SortGroupBy's) */ -} CursorStmt; +} CursorStmt; /* ---------------------- * Select Statement @@ -564,16 +564,16 @@ typedef struct CursorStmt { */ typedef struct RetrieveStmt { NodeTag type; - char *unique; /* NULL, '*', or unique attribute name */ - char *into; /* name of table (for select into - table) */ + char *unique; /* NULL, '*', or unique attribute name */ + char *into; /* name of table (for select into table) */ List *targetList; /* the target list (of ResTarget) */ List *fromClause; /* the from clause */ Node *whereClause; /* qualifications */ List *groupClause; /* group by clause */ Node *havingClause; /* having conditional-expression */ + List *selectClause; /* subselect parameters */ List *sortClause; /* sort clause (a list of SortGroupBy's) */ -} RetrieveStmt; +} RetrieveStmt; /**************************************************************************** @@ -581,11 +581,25 @@ typedef struct RetrieveStmt { ****************************************************************************/ /* + * SubSelect - specifies subselect parameters + */ +typedef struct SubSelect { + NodeTag type; + char *unique; /* NULL, '*', or unique attribute name */ + List *targetList; /* the target list (of ResTarget) */ + List *fromClause; /* the from clause */ + Node *whereClause; /* qualifications */ + List *groupClause; /* group by clause */ + Node *havingClause; /* having conditional-expression */ +} SubSelect; + +/* * TypeName - specifies a type in definitions */ typedef struct TypeName { NodeTag type; char *name; /* name of the type */ + bool timezone; /* timezone specified? */ bool setof; /* is a set? */ List *arrayBounds; /* array bounds */ int typlen; /* length for char() and varchar() */ |