Commit 4e118fc3 authored by Peter Eisentraut's avatar Peter Eisentraut

Correct error message

Apparently copy-and-pasted from nearby.
parent ae0f7b11
...@@ -412,7 +412,7 @@ markTargetListOrigin(ParseState *pstate, TargetEntry *tle, ...@@ -412,7 +412,7 @@ markTargetListOrigin(ParseState *pstate, TargetEntry *tle,
ste = get_tle_by_resno(GetCTETargetList(cte), attnum); ste = get_tle_by_resno(GetCTETargetList(cte), attnum);
if (ste == NULL || ste->resjunk) if (ste == NULL || ste->resjunk)
elog(ERROR, "subquery %s does not have attribute %d", elog(ERROR, "CTE %s does not have attribute %d",
rte->eref->aliasname, attnum); rte->eref->aliasname, attnum);
tle->resorigtbl = ste->resorigtbl; tle->resorigtbl = ste->resorigtbl;
tle->resorigcol = ste->resorigcol; tle->resorigcol = ste->resorigcol;
...@@ -1606,7 +1606,7 @@ expandRecordVariable(ParseState *pstate, Var *var, int levelsup) ...@@ -1606,7 +1606,7 @@ expandRecordVariable(ParseState *pstate, Var *var, int levelsup)
ste = get_tle_by_resno(GetCTETargetList(cte), attnum); ste = get_tle_by_resno(GetCTETargetList(cte), attnum);
if (ste == NULL || ste->resjunk) if (ste == NULL || ste->resjunk)
elog(ERROR, "subquery %s does not have attribute %d", elog(ERROR, "CTE %s does not have attribute %d",
rte->eref->aliasname, attnum); rte->eref->aliasname, attnum);
expr = (Node *) ste->expr; expr = (Node *) ste->expr;
if (IsA(expr, Var)) if (IsA(expr, Var))
......
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