mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
Get rid of last few vestiges of parsetree dependency on grammar token
codes, per discussion from last March. parse.h should now be included *only* by gram.y, scan.l, keywords.c, parser.c. This prevents surprising misbehavior after seemingly-trivial grammar adjustments.
This commit is contained in:
@ -15,7 +15,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.242 2003/02/09 06:56:27 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.243 2003/02/10 04:44:44 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -1198,7 +1198,7 @@ _copyAExpr(A_Expr *from)
|
||||
{
|
||||
A_Expr *newnode = makeNode(A_Expr);
|
||||
|
||||
COPY_SCALAR_FIELD(oper);
|
||||
COPY_SCALAR_FIELD(kind);
|
||||
COPY_NODE_FIELD(name);
|
||||
COPY_NODE_FIELD(lexpr);
|
||||
COPY_NODE_FIELD(rexpr);
|
||||
@ -1669,7 +1669,7 @@ _copyDefineStmt(DefineStmt *from)
|
||||
{
|
||||
DefineStmt *newnode = makeNode(DefineStmt);
|
||||
|
||||
COPY_SCALAR_FIELD(defType);
|
||||
COPY_SCALAR_FIELD(kind);
|
||||
COPY_NODE_FIELD(defnames);
|
||||
COPY_NODE_FIELD(definition);
|
||||
|
||||
@ -1869,7 +1869,7 @@ _copyTransactionStmt(TransactionStmt *from)
|
||||
{
|
||||
TransactionStmt *newnode = makeNode(TransactionStmt);
|
||||
|
||||
COPY_SCALAR_FIELD(command);
|
||||
COPY_SCALAR_FIELD(kind);
|
||||
COPY_NODE_FIELD(options);
|
||||
|
||||
return newnode;
|
||||
@ -2215,7 +2215,7 @@ _copyReindexStmt(ReindexStmt *from)
|
||||
{
|
||||
ReindexStmt *newnode = makeNode(ReindexStmt);
|
||||
|
||||
COPY_SCALAR_FIELD(reindexType);
|
||||
COPY_SCALAR_FIELD(kind);
|
||||
COPY_NODE_FIELD(relation);
|
||||
COPY_STRING_FIELD(name);
|
||||
COPY_SCALAR_FIELD(force);
|
||||
|
Reference in New Issue
Block a user