From: Peter Eisentraut Date: Sat, 5 Jan 2013 13:25:21 +0000 (-0500) Subject: Make some spelling more consistent X-Git-Tag: REL9_3_BETA1~532 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=49e7a26d677b8ce92399542d96287b107ffe80d7;p=postgresql Make some spelling more consistent --- diff --git a/src/backend/commands/typecmds.c b/src/backend/commands/typecmds.c index 4052c0bfb6..7a724161f1 100644 --- a/src/backend/commands/typecmds.c +++ b/src/backend/commands/typecmds.c @@ -929,7 +929,7 @@ DefineDomain(CreateDomainStmt *stmt) if (constr->is_no_inherit) ereport(ERROR, (errcode(ERRCODE_INVALID_OBJECT_DEFINITION), - errmsg("CHECK constraints for domains cannot be marked NO INHERIT"))); + errmsg("check constraints for domains cannot be marked NO INHERIT"))); break; /* diff --git a/src/backend/parser/parse_agg.c b/src/backend/parser/parse_agg.c index f406883019..a944a4d4a8 100644 --- a/src/backend/parser/parse_agg.c +++ b/src/backend/parser/parse_agg.c @@ -248,7 +248,7 @@ transformAggregateCall(ParseState *pstate, Aggref *agg, break; case EXPR_KIND_CHECK_CONSTRAINT: case EXPR_KIND_DOMAIN_CHECK: - err = _("aggregate functions are not allowed in CHECK constraints"); + err = _("aggregate functions are not allowed in check constraints"); break; case EXPR_KIND_COLUMN_DEFAULT: case EXPR_KIND_FUNCTION_DEFAULT: @@ -516,7 +516,7 @@ transformWindowFuncCall(ParseState *pstate, WindowFunc *wfunc, break; case EXPR_KIND_CHECK_CONSTRAINT: case EXPR_KIND_DOMAIN_CHECK: - err = _("window functions are not allowed in CHECK constraints"); + err = _("window functions are not allowed in check constraints"); break; case EXPR_KIND_COLUMN_DEFAULT: case EXPR_KIND_FUNCTION_DEFAULT: diff --git a/src/backend/parser/parse_expr.c b/src/backend/parser/parse_expr.c index a8bc62e35f..327557e0a3 100644 --- a/src/backend/parser/parse_expr.c +++ b/src/backend/parser/parse_expr.c @@ -1449,7 +1449,7 @@ transformSubLink(ParseState *pstate, SubLink *sublink) break; case EXPR_KIND_CHECK_CONSTRAINT: case EXPR_KIND_DOMAIN_CHECK: - err = _("cannot use subquery in CHECK constraint"); + err = _("cannot use subquery in check constraint"); break; case EXPR_KIND_COLUMN_DEFAULT: case EXPR_KIND_FUNCTION_DEFAULT: diff --git a/src/backend/utils/adt/rangetypes.c b/src/backend/utils/adt/rangetypes.c index 507bd6fddf..0289d2fc3f 100644 --- a/src/backend/utils/adt/rangetypes.c +++ b/src/backend/utils/adt/rangetypes.c @@ -393,7 +393,7 @@ range_constructor3(PG_FUNCTION_ARGS) if (PG_ARGISNULL(2)) ereport(ERROR, (errcode(ERRCODE_DATA_EXCEPTION), - errmsg("range constructor flags argument must not be NULL"))); + errmsg("range constructor flags argument must not be null"))); flags = range_parse_flags(text_to_cstring(PG_GETARG_TEXT_P(2)));