Correct error message
authorPeter Eisentraut <[email protected]>
Wed, 14 Oct 2020 05:54:14 +0000 (07:54 +0200)
committerPeter Eisentraut <[email protected]>
Wed, 14 Oct 2020 05:54:14 +0000 (07:54 +0200)
Apparently copy-and-pasted from nearby.

src/backend/parser/parse_target.c

index 566c5178373e5ebb015758315d54ca3a7c051fb3..9de0cff8338962b54ca27c4cf75e58887adfe0f7 100644 (file)
@@ -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))