Skip to content

Commit

Permalink
Change terminology
Browse files Browse the repository at this point in the history
  • Loading branch information
Euler Taveira committed Aug 23, 2019
1 parent c60d904 commit ec578e3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/backend/parser/parse_agg.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,9 +524,9 @@ check_agglevels_and_constraints(ParseState *pstate, Node *expr)
break;
case EXPR_KIND_PUBLICATION_WHERE:
if (isAgg)
err = _("aggregate functions are not allowed in publication WHERE conditions");
err = _("aggregate functions are not allowed in publication WHERE expressions");
else
err = _("grouping operations are not allowed in publication WHERE conditions");
err = _("grouping operations are not allowed in publication WHERE expressions");

break;

Expand Down Expand Up @@ -910,7 +910,7 @@ transformWindowFuncCall(ParseState *pstate, WindowFunc *wfunc,
err = _("window functions are not allowed in CALL arguments");
break;
case EXPR_KIND_PUBLICATION_WHERE:
err = _("window functions are not allowed in publication WHERE conditions");
err = _("window functions are not allowed in publication WHERE expressions");
break;

/*
Expand Down
4 changes: 2 additions & 2 deletions src/backend/parser/parse_expr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1850,7 +1850,7 @@ transformSubLink(ParseState *pstate, SubLink *sublink)
err = _("cannot use subquery in CALL argument");
break;
case EXPR_KIND_PUBLICATION_WHERE:
err = _("cannot use subquery in publication WHERE condition");
err = _("cannot use subquery in publication WHERE expression");
break;

/*
Expand Down Expand Up @@ -3479,7 +3479,7 @@ ParseExprKindName(ParseExprKind exprKind)
case EXPR_KIND_CALL_ARGUMENT:
return "CALL";
case EXPR_KIND_PUBLICATION_WHERE:
return "publication WHERE";
return "publication expression";

/*
* There is intentionally no default: case here, so that the
Expand Down
2 changes: 1 addition & 1 deletion src/backend/parser/parse_func.c
Original file line number Diff line number Diff line change
Expand Up @@ -2382,7 +2382,7 @@ check_srf_call_placement(ParseState *pstate, Node *last_srf, int location)
err = _("set-returning functions are not allowed in CALL arguments");
break;
case EXPR_KIND_PUBLICATION_WHERE:
err = _("set-returning functions are not allowed in publication WHERE conditions");
err = _("set-returning functions are not allowed in publication WHERE expressions");
break;

/*
Expand Down

0 comments on commit ec578e3

Please sign in to comment.