diff options
author | Michael Paquier <michael@paquier.xyz> | 2022-07-20 09:50:57 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2022-07-20 09:50:57 +0900 |
commit | 535f1fc9da728f5c692c96d5a4d635b43eeef7b7 (patch) | |
tree | 0ac8bde47ea2de934e85c110c0172780ad4bccd6 /src/backend/parser/parse_expr.c | |
parent | a2944d8724522c5659c024b191f2fbfa9770faaf (diff) | |
download | postgresql-535f1fc9da728f5c692c96d5a4d635b43eeef7b7.tar.gz postgresql-535f1fc9da728f5c692c96d5a4d635b43eeef7b7.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/parser/parse_expr.c')
-rw-r--r-- | src/backend/parser/parse_expr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/parser/parse_expr.c b/src/backend/parser/parse_expr.c index 1dbdba93daa..8fc3252d1b0 100644 --- a/src/backend/parser/parse_expr.c +++ b/src/backend/parser/parse_expr.c @@ -3457,7 +3457,7 @@ checkJsonOutputFormat(ParseState *pstate, const JsonFormat *format, ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("unsupported JSON encoding"), - errhint("only UTF8 JSON encoding is supported"), + errhint("Only UTF8 JSON encoding is supported."), parser_errposition(pstate, format->location))); } } @@ -4590,7 +4590,7 @@ transformJsonSerializeExpr(ParseState *pstate, JsonSerializeExpr *expr) errmsg("cannot use RETURNING type %s in %s", format_type_be(returning->typid), "JSON_SERIALIZE()"), - errhint("Try returning a string type or bytea"))); + errhint("Try returning a string type or bytea."))); } } else |