Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
3d15d133
Commit
3d15d133
authored
Jan 09, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove old quel labels.
parent
bf8af220
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
77 additions
and
75 deletions
+77
-75
src/backend/parser/analyze.c
src/backend/parser/analyze.c
+13
-13
src/backend/parser/gram.y
src/backend/parser/gram.y
+57
-55
src/include/nodes/parsenodes.h
src/include/nodes/parsenodes.h
+7
-7
No files found.
src/backend/parser/analyze.c
View file @
3d15d133
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.6
1 1998/01/05 03:32:12
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.6
2 1998/01/09 20:05:49
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -33,12 +33,12 @@
static
Query
*
transformStmt
(
ParseState
*
pstate
,
Node
*
stmt
);
static
Query
*
transformDeleteStmt
(
ParseState
*
pstate
,
DeleteStmt
*
stmt
);
static
Query
*
transformInsertStmt
(
ParseState
*
pstate
,
Append
Stmt
*
stmt
);
static
Query
*
transformInsertStmt
(
ParseState
*
pstate
,
Insert
Stmt
*
stmt
);
static
Query
*
transformIndexStmt
(
ParseState
*
pstate
,
IndexStmt
*
stmt
);
static
Query
*
transformExtendStmt
(
ParseState
*
pstate
,
ExtendStmt
*
stmt
);
static
Query
*
transformRuleStmt
(
ParseState
*
query
,
RuleStmt
*
stmt
);
static
Query
*
transformSelectStmt
(
ParseState
*
pstate
,
Retrieve
Stmt
*
stmt
);
static
Query
*
transformUpdateStmt
(
ParseState
*
pstate
,
Replac
eStmt
*
stmt
);
static
Query
*
transformSelectStmt
(
ParseState
*
pstate
,
Select
Stmt
*
stmt
);
static
Query
*
transformUpdateStmt
(
ParseState
*
pstate
,
Updat
eStmt
*
stmt
);
static
Query
*
transformCursorStmt
(
ParseState
*
pstate
,
CursorStmt
*
stmt
);
static
Query
*
transformCreateStmt
(
ParseState
*
pstate
,
CreateStmt
*
stmt
);
...
...
@@ -163,24 +163,24 @@ transformStmt(ParseState *pstate, Node *parseTree)
* Optimizable statements
*------------------------
*/
case
T_
Append
Stmt
:
result
=
transformInsertStmt
(
pstate
,
(
Append
Stmt
*
)
parseTree
);
case
T_
Insert
Stmt
:
result
=
transformInsertStmt
(
pstate
,
(
Insert
Stmt
*
)
parseTree
);
break
;
case
T_DeleteStmt
:
result
=
transformDeleteStmt
(
pstate
,
(
DeleteStmt
*
)
parseTree
);
break
;
case
T_
Replac
eStmt
:
result
=
transformUpdateStmt
(
pstate
,
(
Replac
eStmt
*
)
parseTree
);
case
T_
Updat
eStmt
:
result
=
transformUpdateStmt
(
pstate
,
(
Updat
eStmt
*
)
parseTree
);
break
;
case
T_CursorStmt
:
result
=
transformCursorStmt
(
pstate
,
(
CursorStmt
*
)
parseTree
);
break
;
case
T_
Retrieve
Stmt
:
result
=
transformSelectStmt
(
pstate
,
(
Retrieve
Stmt
*
)
parseTree
);
case
T_
Select
Stmt
:
result
=
transformSelectStmt
(
pstate
,
(
Select
Stmt
*
)
parseTree
);
break
;
default:
...
...
@@ -231,7 +231,7 @@ transformDeleteStmt(ParseState *pstate, DeleteStmt *stmt)
* transform an Insert Statement
*/
static
Query
*
transformInsertStmt
(
ParseState
*
pstate
,
Append
Stmt
*
stmt
)
transformInsertStmt
(
ParseState
*
pstate
,
Insert
Stmt
*
stmt
)
{
Query
*
qry
=
makeNode
(
Query
);
/* make a new query tree */
List
*
icolumns
;
...
...
@@ -800,7 +800,7 @@ transformRuleStmt(ParseState *pstate, RuleStmt *stmt)
*
*/
static
Query
*
transformSelectStmt
(
ParseState
*
pstate
,
Retrieve
Stmt
*
stmt
)
transformSelectStmt
(
ParseState
*
pstate
,
Select
Stmt
*
stmt
)
{
Query
*
qry
=
makeNode
(
Query
);
...
...
@@ -851,7 +851,7 @@ transformSelectStmt(ParseState *pstate, RetrieveStmt *stmt)
*
*/
static
Query
*
transformUpdateStmt
(
ParseState
*
pstate
,
Replac
eStmt
*
stmt
)
transformUpdateStmt
(
ParseState
*
pstate
,
Updat
eStmt
*
stmt
)
{
Query
*
qry
=
makeNode
(
Query
);
...
...
src/backend/parser/gram.y
View file @
3d15d133
This diff is collapsed.
Click to expand it.
src/include/nodes/parsenodes.h
View file @
3d15d133
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: parsenodes.h,v 1.4
0 1997/12/27 06:41:39
momjian Exp $
* $Id: parsenodes.h,v 1.4
1 1998/01/09 20:06:08
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -570,7 +570,7 @@ typedef struct VariableResetStmt
* Insert Statement
* ----------------------
*/
typedef
struct
Append
Stmt
typedef
struct
Insert
Stmt
{
NodeTag
type
;
char
*
relname
;
/* relation to insert into */
...
...
@@ -578,7 +578,7 @@ typedef struct AppendStmt
List
*
targetList
;
/* the target list (of ResTarget) */
List
*
fromClause
;
/* the from clause */
Node
*
whereClause
;
/* qualifications */
}
Append
Stmt
;
}
Insert
Stmt
;
/* ----------------------
* Delete Statement
...
...
@@ -595,14 +595,14 @@ typedef struct DeleteStmt
* Update Statement
* ----------------------
*/
typedef
struct
Replac
eStmt
typedef
struct
Updat
eStmt
{
NodeTag
type
;
char
*
relname
;
/* relation to update */
List
*
targetList
;
/* the target list (of ResTarget) */
Node
*
whereClause
;
/* qualifications */
List
*
fromClause
;
/* the from clause */
}
Replac
eStmt
;
}
Updat
eStmt
;
/* ----------------------
* Create Cursor Statement
...
...
@@ -625,7 +625,7 @@ typedef struct CursorStmt
* Select Statement
* ----------------------
*/
typedef
struct
Retrieve
Stmt
typedef
struct
Select
Stmt
{
NodeTag
type
;
char
*
unique
;
/* NULL, '*', or unique attribute name */
...
...
@@ -638,7 +638,7 @@ typedef struct RetrieveStmt
List
*
unionClause
;
/* union subselect parameters */
List
*
sortClause
;
/* sort clause (a list of SortGroupBy's) */
bool
unionall
;
/* union without unique sort */
}
Retrieve
Stmt
;
}
Select
Stmt
;
/****************************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment