diff options
author | Michael Paquier <michael@paquier.xyz> | 2022-07-20 09:50:12 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2022-07-20 09:50:12 +0900 |
commit | 12c254c99f6c6f0bbfc7997ee10ea73fee30dea2 (patch) | |
tree | 8fef3ccd28d896897f1298c9cad604b580cd1035 /src/backend/utils | |
parent | ecc84b916f8f36924e2b3de358045edfc3205e5a (diff) | |
download | postgresql-12c254c99f6c6f0bbfc7997ee10ea73fee30dea2.tar.gz postgresql-12c254c99f6c6f0bbfc7997ee10ea73fee30dea2.zip |
Tweak detail and hint messages to be consistent with project policy
Detail and hint messages should be full sentences and should end with a
period, but some of the messages newly-introduced in v15 did not follow
that.
Author: Justin Pryzby
Reviewed-by: Álvaro Herrera
Discussion: https://postgr.es/m/20220719120948.GF12702@telsasoft.com
Backpatch-through: 15
Diffstat (limited to 'src/backend/utils')
-rw-r--r-- | src/backend/utils/adt/jsonpath_exec.c | 4 | ||||
-rw-r--r-- | src/backend/utils/adt/jsonpath_gram.y | 2 | ||||
-rw-r--r-- | src/backend/utils/misc/guc.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/utils/adt/jsonpath_exec.c b/src/backend/utils/adt/jsonpath_exec.c index 0943a381bac..10c7e64aab3 100644 --- a/src/backend/utils/adt/jsonpath_exec.c +++ b/src/backend/utils/adt/jsonpath_exec.c @@ -2973,8 +2973,8 @@ JsonPathQuery(Datum jb, JsonPath *jp, JsonWrapper wrapper, bool *empty, (errcode(ERRCODE_MORE_THAN_ONE_SQL_JSON_ITEM), errmsg("JSON path expression in JSON_QUERY should return " "singleton item without wrapper"), - errhint("use WITH WRAPPER clause to wrap SQL/JSON item " - "sequence into array"))); + errhint("Use WITH WRAPPER clause to wrap SQL/JSON item " + "sequence into array."))); } if (first) diff --git a/src/backend/utils/adt/jsonpath_gram.y b/src/backend/utils/adt/jsonpath_gram.y index 57f6beb27bf..f903dba3e34 100644 --- a/src/backend/utils/adt/jsonpath_gram.y +++ b/src/backend/utils/adt/jsonpath_gram.y @@ -526,7 +526,7 @@ makeItemLikeRegex(JsonPathParseItem *expr, JsonPathString *pattern, ereport(ERROR, (errcode(ERRCODE_SYNTAX_ERROR), errmsg("invalid input syntax for type %s", "jsonpath"), - errdetail("unrecognized flag character \"%.*s\" in LIKE_REGEX predicate", + errdetail("Unrecognized flag character \"%.*s\" in LIKE_REGEX predicate.", pg_mblen(flags->val + i), flags->val + i))); break; } diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index 28da02ff6c9..af4a1c30689 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -12551,7 +12551,7 @@ check_client_connection_check_interval(int *newval, void **extra, GucSource sour { if (!WaitEventSetCanReportClosed() && *newval != 0) { - GUC_check_errdetail("client_connection_check_interval must be set to 0 on this platform"); + GUC_check_errdetail("client_connection_check_interval must be set to 0 on this platform."); return false; } return true; |