Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d9a38c5

Browse files
committed
Rename NodeTag of ExprState
Rename from tag to type, for consistency with all other node structs. Discussion: https://www.postgresql.org/message-id/flat/[email protected]
1 parent 81d5995 commit d9a38c5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/backend/executor/execExpr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ ExecBuildProjectionInfo(List *targetList,
363363

364364
projInfo->pi_exprContext = econtext;
365365
/* We embed ExprState into ProjectionInfo instead of doing extra palloc */
366-
projInfo->pi_state.tag = T_ExprState;
366+
projInfo->pi_state.type = T_ExprState;
367367
state = &projInfo->pi_state;
368368
state->expr = (Expr *) targetList;
369369
state->parent = parent;
@@ -531,7 +531,7 @@ ExecBuildUpdateProjection(List *targetList,
531531

532532
projInfo->pi_exprContext = econtext;
533533
/* We embed ExprState into ProjectionInfo instead of doing extra palloc */
534-
projInfo->pi_state.tag = T_ExprState;
534+
projInfo->pi_state.type = T_ExprState;
535535
state = &projInfo->pi_state;
536536
if (evalTargetList)
537537
state->expr = (Expr *) targetList;

src/include/nodes/execnodes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ typedef Datum (*ExprStateEvalFunc) (struct ExprState *expression,
6060

6161
typedef struct ExprState
6262
{
63-
NodeTag tag;
63+
NodeTag type;
6464

6565
uint8 flags; /* bitmask of EEO_FLAG_* bits, see above */
6666

0 commit comments

Comments
 (0)