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

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy