Skip to content

Commit 49e7a26

Browse files
committed
Make some spelling more consistent
1 parent 94afbd5 commit 49e7a26

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/backend/commands/typecmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ DefineDomain(CreateDomainStmt *stmt)
929929
if (constr->is_no_inherit)
930930
ereport(ERROR,
931931
(errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
932-
errmsg("CHECK constraints for domains cannot be marked NO INHERIT")));
932+
errmsg("check constraints for domains cannot be marked NO INHERIT")));
933933
break;
934934

935935
/*

src/backend/parser/parse_agg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ transformAggregateCall(ParseState *pstate, Aggref *agg,
248248
break;
249249
case EXPR_KIND_CHECK_CONSTRAINT:
250250
case EXPR_KIND_DOMAIN_CHECK:
251-
err = _("aggregate functions are not allowed in CHECK constraints");
251+
err = _("aggregate functions are not allowed in check constraints");
252252
break;
253253
case EXPR_KIND_COLUMN_DEFAULT:
254254
case EXPR_KIND_FUNCTION_DEFAULT:
@@ -516,7 +516,7 @@ transformWindowFuncCall(ParseState *pstate, WindowFunc *wfunc,
516516
break;
517517
case EXPR_KIND_CHECK_CONSTRAINT:
518518
case EXPR_KIND_DOMAIN_CHECK:
519-
err = _("window functions are not allowed in CHECK constraints");
519+
err = _("window functions are not allowed in check constraints");
520520
break;
521521
case EXPR_KIND_COLUMN_DEFAULT:
522522
case EXPR_KIND_FUNCTION_DEFAULT:

src/backend/parser/parse_expr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1449,7 +1449,7 @@ transformSubLink(ParseState *pstate, SubLink *sublink)
14491449
break;
14501450
case EXPR_KIND_CHECK_CONSTRAINT:
14511451
case EXPR_KIND_DOMAIN_CHECK:
1452-
err = _("cannot use subquery in CHECK constraint");
1452+
err = _("cannot use subquery in check constraint");
14531453
break;
14541454
case EXPR_KIND_COLUMN_DEFAULT:
14551455
case EXPR_KIND_FUNCTION_DEFAULT:

src/backend/utils/adt/rangetypes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ range_constructor3(PG_FUNCTION_ARGS)
393393
if (PG_ARGISNULL(2))
394394
ereport(ERROR,
395395
(errcode(ERRCODE_DATA_EXCEPTION),
396-
errmsg("range constructor flags argument must not be NULL")));
396+
errmsg("range constructor flags argument must not be null")));
397397

398398
flags = range_parse_flags(text_to_cstring(PG_GETARG_TEXT_P(2)));
399399

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy