Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4e118fc

Browse files
committed
Correct error message
Apparently copy-and-pasted from nearby.
1 parent ae0f7b1 commit 4e118fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/parser/parse_target.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ markTargetListOrigin(ParseState *pstate, TargetEntry *tle,
412412

413413
ste = get_tle_by_resno(GetCTETargetList(cte), attnum);
414414
if (ste == NULL || ste->resjunk)
415-
elog(ERROR, "subquery %s does not have attribute %d",
415+
elog(ERROR, "CTE %s does not have attribute %d",
416416
rte->eref->aliasname, attnum);
417417
tle->resorigtbl = ste->resorigtbl;
418418
tle->resorigcol = ste->resorigcol;
@@ -1606,7 +1606,7 @@ expandRecordVariable(ParseState *pstate, Var *var, int levelsup)
16061606

16071607
ste = get_tle_by_resno(GetCTETargetList(cte), attnum);
16081608
if (ste == NULL || ste->resjunk)
1609-
elog(ERROR, "subquery %s does not have attribute %d",
1609+
elog(ERROR, "CTE %s does not have attribute %d",
16101610
rte->eref->aliasname, attnum);
16111611
expr = (Node *) ste->expr;
16121612
if (IsA(expr, Var))

0 commit comments

Comments
 (0)