Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1bf90bc

Browse files
author
Thomas G. Lockhart
committed
Add structure for subselects.
Add field to support "WITH TIME ZONE".
1 parent570620c commit1bf90bc

File tree

2 files changed

+24
-9
lines changed

2 files changed

+24
-9
lines changed

‎src/include/nodes/nodes.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: nodes.h,v 1.10 1997/08/31 11:43:08 vadim Exp $
9+
* $Id: nodes.h,v 1.11 1997/09/01 06:04:57 thomas Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -206,7 +206,8 @@ typedef enum NodeTag {
206206
T_TargetEntry,
207207
T_RangeTblEntry,
208208
T_SortClause,
209-
T_GroupClause
209+
T_GroupClause,
210+
T_SubSelect
210211
}NodeTag;
211212

212213
/*

‎src/include/nodes/parsenodes.h

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: parsenodes.h,v 1.21 1997/08/31 11:43:09 vadim Exp $
9+
* $Id: parsenodes.h,v 1.22 1997/09/01 06:04:59 thomas Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -554,38 +554,52 @@ typedef struct CursorStmt {
554554
List*targetList;/* the target list (of ResTarget) */
555555
List*fromClause;/* the from clause */
556556
Node*whereClause;/* qualifications */
557-
List*groupClause;/* group by clause */
557+
List*groupClause;/* group by clause */
558558
List*sortClause;/* sort clause (a list of SortGroupBy's) */
559-
}CursorStmt;
559+
}CursorStmt;
560560

561561
/* ----------------------
562562
*Select Statement
563563
* ----------------------
564564
*/
565565
typedefstructRetrieveStmt {
566566
NodeTagtype;
567-
char*unique;/* NULL, '*', or unique attribute name */
568-
char*into;/* name of table (for select into
569-
table) */
567+
char*unique;/* NULL, '*', or unique attribute name */
568+
char*into;/* name of table (for select into table) */
570569
List*targetList;/* the target list (of ResTarget) */
571570
List*fromClause;/* the from clause */
572571
Node*whereClause;/* qualifications */
573572
List*groupClause;/* group by clause */
574573
Node*havingClause;/* having conditional-expression */
574+
List*selectClause;/* subselect parameters */
575575
List*sortClause;/* sort clause (a list of SortGroupBy's) */
576-
}RetrieveStmt;
576+
}RetrieveStmt;
577577

578578

579579
/****************************************************************************
580580
* Supporting data structures for Parse Trees
581581
****************************************************************************/
582582

583+
/*
584+
* SubSelect - specifies subselect parameters
585+
*/
586+
typedefstructSubSelect {
587+
NodeTagtype;
588+
char*unique;/* NULL, '*', or unique attribute name */
589+
List*targetList;/* the target list (of ResTarget) */
590+
List*fromClause;/* the from clause */
591+
Node*whereClause;/* qualifications */
592+
List*groupClause;/* group by clause */
593+
Node*havingClause;/* having conditional-expression */
594+
}SubSelect;
595+
583596
/*
584597
* TypeName - specifies a type in definitions
585598
*/
586599
typedefstructTypeName {
587600
NodeTagtype;
588601
char*name;/* name of the type */
602+
booltimezone;/* timezone specified? */
589603
boolsetof;/* is a set? */
590604
List*arrayBounds;/* array bounds */
591605
inttyplen;/* length for char() and varchar() */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp