Skip to content

Commit 7f2a088

Browse files
author
hackorum
committed
Apply or_window.diff
1 parent b597835 commit 7f2a088

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/backend/parser/parse_agg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1571,7 +1571,7 @@ substitute_grouped_columns_mutator(Node *node,
15711571
if (context->sublevels_up == 0)
15721572
ereport(ERROR,
15731573
(errcode(ERRCODE_GROUPING_ERROR),
1574-
errmsg("column \"%s.%s\" must appear in the GROUP BY clause or be used in an aggregate function",
1574+
errmsg("column \"%s.%s\" must appear in the GROUP BY clause or be used in an aggregate or window function",
15751575
rte->eref->aliasname, attname),
15761576
context->in_agg_direct_args ?
15771577
errdetail("Direct arguments of an ordered-set aggregate must use only grouped columns.") : 0,

0 commit comments

Comments
 (0)