]> granicus.if.org Git - postgresql/commitdiff
Make some spelling more consistent
authorPeter Eisentraut <peter_e@gmx.net>
Sat, 5 Jan 2013 13:25:21 +0000 (08:25 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Sat, 5 Jan 2013 13:25:21 +0000 (08:25 -0500)
src/backend/commands/typecmds.c
src/backend/parser/parse_agg.c
src/backend/parser/parse_expr.c
src/backend/utils/adt/rangetypes.c

index 4052c0bfb6f9d2709d2b95b8715aec41e370fc4b..7a724161f1157428dd5d2def4af30ae3cfd3af93 100644 (file)
@@ -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;
 
                                /*
index f406883019cf0c8098bbd2403e7234b71805e8ea..a944a4d4a8d5f466f4df9d7f6aef8235d77c003e 100644 (file)
@@ -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:
index a8bc62e35f34e9800c24e738dd85097ae741e908..327557e0a38319034163925160d448f6d963c4f2 100644 (file)
@@ -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:
index 507bd6fddf905ab74b668382b9c32e8238227076..0289d2fc3ff06981018bf46f40c87008f373922f 100644 (file)
@@ -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)));