Correct error message

Apparently copy-and-pasted from nearby.
pull/57/head
Peter Eisentraut 5 years ago
parent ae0f7b11f1
commit 4e118fc33e
  1. 4
      src/backend/parser/parse_target.c

@ -412,7 +412,7 @@ markTargetListOrigin(ParseState *pstate, TargetEntry *tle,
ste = get_tle_by_resno(GetCTETargetList(cte), attnum);
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);
tle->resorigtbl = ste->resorigtbl;
tle->resorigcol = ste->resorigcol;
@ -1606,7 +1606,7 @@ expandRecordVariable(ParseState *pstate, Var *var, int levelsup)
ste = get_tle_by_resno(GetCTETargetList(cte), attnum);
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);
expr = (Node *) ste->expr;
if (IsA(expr, Var))

Loading…
Cancel
Save