Commit 30d13796 authored by Andres Freund's avatar Andres Freund

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

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

Author: Andres Freund
parent d6e612f8
...@@ -361,7 +361,7 @@ ExecBuildProjectionInfo(List *targetList, ...@@ -361,7 +361,7 @@ ExecBuildProjectionInfo(List *targetList,
projInfo->pi_exprContext = econtext; projInfo->pi_exprContext = econtext;
/* We embed ExprState into ProjectionInfo instead of doing extra palloc */ /* 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 = &projInfo->pi_state;
state->expr = (Expr *) targetList; state->expr = (Expr *) targetList;
state->parent = parent; state->parent = parent;
......
...@@ -61,7 +61,7 @@ typedef Datum (*ExprStateEvalFunc) (struct ExprState *expression, ...@@ -61,7 +61,7 @@ typedef Datum (*ExprStateEvalFunc) (struct ExprState *expression,
typedef struct ExprState typedef struct ExprState
{ {
Node tag; NodeTag tag;
uint8 flags; /* bitmask of EEO_FLAG_* bits, see above */ uint8 flags; /* bitmask of EEO_FLAG_* bits, see above */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment