mirror of
https://github.com/postgres/postgres.git
synced 2025-06-17 17:02:08 +03:00
@ -455,13 +455,6 @@ check_agglevels_and_constraints(ParseState *pstate, Node *expr)
|
||||
case EXPR_KIND_VALUES_SINGLE:
|
||||
errkind = true;
|
||||
break;
|
||||
case EXPR_KIND_MERGE_WHEN_AND:
|
||||
if (isAgg)
|
||||
err = _("aggregate functions are not allowed in WHEN AND conditions");
|
||||
else
|
||||
err = _("grouping operations are not allowed in WHEN AND conditions");
|
||||
|
||||
break;
|
||||
case EXPR_KIND_CHECK_CONSTRAINT:
|
||||
case EXPR_KIND_DOMAIN_CHECK:
|
||||
if (isAgg)
|
||||
@ -880,9 +873,6 @@ transformWindowFuncCall(ParseState *pstate, WindowFunc *wfunc,
|
||||
case EXPR_KIND_VALUES_SINGLE:
|
||||
errkind = true;
|
||||
break;
|
||||
case EXPR_KIND_MERGE_WHEN_AND:
|
||||
err = _("window functions are not allowed in WHEN AND conditions");
|
||||
break;
|
||||
case EXPR_KIND_CHECK_CONSTRAINT:
|
||||
case EXPR_KIND_DOMAIN_CHECK:
|
||||
err = _("window functions are not allowed in check constraints");
|
||||
|
Reference in New Issue
Block a user