From: Bruce Momjian Date: Thu, 11 Jan 2007 18:44:53 +0000 (+0000) Subject: Improve error wording of ORDER BY in UNION that uses new expressions in X-Git-Tag: REL8_3_BETA1~1533 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2fe327013892267f6ebcb9c2acbd79f85626370;p=postgresql Improve error wording of ORDER BY in UNION that uses new expressions in ORDER BY. --- diff --git a/src/backend/parser/analyze.c b/src/backend/parser/analyze.c index f4b566cb6d..8048b63e64 100644 --- a/src/backend/parser/analyze.c +++ b/src/backend/parser/analyze.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/backend/parser/analyze.c,v 1.355 2007/01/09 02:14:13 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/parser/analyze.c,v 1.356 2007/01/11 18:44:53 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -2547,7 +2547,7 @@ transformSetOperationStmt(ParseState *pstate, SelectStmt *stmt) if (tllen != list_length(qry->targetList)) ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), - errmsg("ORDER BY on a UNION/INTERSECT/EXCEPT result must be on one of the result columns"))); + errmsg("ORDER BY on a UNION/INTERSECT/EXCEPT result must match existing result columns"))); qry->limitOffset = transformLimitClause(pstate, limitOffset, "OFFSET");