Fix ExprState's tag to be of type NodeTag rather than Node.

This appears to have been an oversight in b8d7f053c5. As it's
effectively harmless, though confusing, only fix in master.

Author: Andres Freund
This commit is contained in:
Andres Freund 2019-09-23 15:28:13 -07:00
parent d6e612f837
commit 30d1379658
2 changed files with 2 additions and 2 deletions

View File

@ -361,7 +361,7 @@ ExecBuildProjectionInfo(List *targetList,
projInfo->pi_exprContext = econtext;
/* We embed ExprState into ProjectionInfo instead of doing extra palloc */
projInfo->pi_state.tag.type = T_ExprState;
projInfo->pi_state.tag = T_ExprState;
state = &projInfo->pi_state;
state->expr = (Expr *) targetList;
state->parent = parent;

View File

@ -61,7 +61,7 @@ typedef Datum (*ExprStateEvalFunc) (struct ExprState *expression,
typedef struct ExprState
{
Node tag;
NodeTag tag;
uint8 flags; /* bitmask of EEO_FLAG_* bits, see above */