Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
1bf90bc7
Commit
1bf90bc7
authored
27 years ago
by
Thomas G. Lockhart
Browse files
Options
Downloads
Patches
Plain Diff
Add structure for subselects.
Add field to support "WITH TIME ZONE".
parent
570620c5
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/include/nodes/nodes.h
+3
-2
3 additions, 2 deletions
src/include/nodes/nodes.h
src/include/nodes/parsenodes.h
+21
-7
21 additions, 7 deletions
src/include/nodes/parsenodes.h
with
24 additions
and
9 deletions
src/include/nodes/nodes.h
+
3
−
2
View file @
1bf90bc7
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: nodes.h,v 1.1
0
1997/0
8/31 11:43:08 vadim
Exp $
* $Id: nodes.h,v 1.1
1
1997/0
9/01 06:04:57 thomas
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -206,7 +206,8 @@ typedef enum NodeTag {
...
@@ -206,7 +206,8 @@ typedef enum NodeTag {
T_TargetEntry
,
T_TargetEntry
,
T_RangeTblEntry
,
T_RangeTblEntry
,
T_SortClause
,
T_SortClause
,
T_GroupClause
T_GroupClause
,
T_SubSelect
}
NodeTag
;
}
NodeTag
;
/*
/*
...
...
This diff is collapsed.
Click to expand it.
src/include/nodes/parsenodes.h
+
21
−
7
View file @
1bf90bc7
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: parsenodes.h,v 1.2
1
1997/0
8/31 11:43:09 vadim
Exp $
* $Id: parsenodes.h,v 1.2
2
1997/0
9/01 06:04:59 thomas
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -565,13 +565,13 @@ typedef struct CursorStmt {
...
@@ -565,13 +565,13 @@ typedef struct CursorStmt {
typedef
struct
RetrieveStmt
{
typedef
struct
RetrieveStmt
{
NodeTag
type
;
NodeTag
type
;
char
*
unique
;
/* NULL, '*', or unique attribute name */
char
*
unique
;
/* NULL, '*', or unique attribute name */
char
*
into
;
/* name of table (for select into
char
*
into
;
/* name of table (for select into table) */
table) */
List
*
targetList
;
/* the target list (of ResTarget) */
List
*
targetList
;
/* the target list (of ResTarget) */
List
*
fromClause
;
/* the from clause */
List
*
fromClause
;
/* the from clause */
Node
*
whereClause
;
/* qualifications */
Node
*
whereClause
;
/* qualifications */
List
*
groupClause
;
/* group by clause */
List
*
groupClause
;
/* group by clause */
Node
*
havingClause
;
/* having conditional-expression */
Node
*
havingClause
;
/* having conditional-expression */
List
*
selectClause
;
/* subselect parameters */
List
*
sortClause
;
/* sort clause (a list of SortGroupBy's) */
List
*
sortClause
;
/* sort clause (a list of SortGroupBy's) */
}
RetrieveStmt
;
}
RetrieveStmt
;
...
@@ -580,12 +580,26 @@ typedef struct RetrieveStmt {
...
@@ -580,12 +580,26 @@ typedef struct RetrieveStmt {
* Supporting data structures for Parse Trees
* Supporting data structures for Parse Trees
****************************************************************************/
****************************************************************************/
/*
* 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
* TypeName - specifies a type in definitions
*/
*/
typedef
struct
TypeName
{
typedef
struct
TypeName
{
NodeTag
type
;
NodeTag
type
;
char
*
name
;
/* name of the type */
char
*
name
;
/* name of the type */
bool
timezone
;
/* timezone specified? */
bool
setof
;
/* is a set? */
bool
setof
;
/* is a set? */
List
*
arrayBounds
;
/* array bounds */
List
*
arrayBounds
;
/* array bounds */
int
typlen
;
/* length for char() and varchar() */
int
typlen
;
/* length for char() and varchar() */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment