Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit87f6d64

Browse files
committed
Update UNION/INTERSECT/EXCEPT ORDER BY error wording for
expressions/functions.
1 parente2fe327 commit87f6d64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/parser/analyze.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
9-
*$PostgreSQL: pgsql/src/backend/parser/analyze.c,v 1.356 2007/01/1118:44:53 momjian Exp $
9+
*$PostgreSQL: pgsql/src/backend/parser/analyze.c,v 1.357 2007/01/1120:04:50 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -2547,7 +2547,7 @@ transformSetOperationStmt(ParseState *pstate, SelectStmt *stmt)
25472547
if (tllen!=list_length(qry->targetList))
25482548
ereport(ERROR,
25492549
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
2550-
errmsg("ORDER BY on aUNION/INTERSECT/EXCEPTresult must match existingresultcolumns")));
2550+
errmsg("AUNION/INTERSECT/EXCEPTORDER BY cannot use expressions or functions, onlyresultcolumn names")));
25512551

25522552
qry->limitOffset=transformLimitClause(pstate,limitOffset,
25532553
"OFFSET");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp