aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_expr.c
diff options
context:
space:
mode:
authorAmit Langote <amitlan@postgresql.org>2024-03-22 12:00:14 +0900
committerAmit Langote <amitlan@postgresql.org>2024-03-22 12:04:06 +0900
commit085e759e9da77b7f5e859d23f72653f36277a053 (patch)
treeeef9befc77eace06c2cd8237ec5cbbf4d7e10a02 /src/backend/parser/parse_expr.c
parent7e65ad197f9dff7466cea7986450f9573adb4448 (diff)
downloadpostgresql-085e759e9da77b7f5e859d23f72653f36277a053.tar.gz
postgresql-085e759e9da77b7f5e859d23f72653f36277a053.zip
Avoid splitting errmsg string to span multiple lines
The error message being fixed was added in 6185c9737c. While at it, add an "a" to the sentence. Reported-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com> Discussion: https://postgr.es/m/20240322.095149.895185546948714852.horikyota.ntt%40gmail.com
Diffstat (limited to 'src/backend/parser/parse_expr.c')
-rw-r--r--src/backend/parser/parse_expr.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/backend/parser/parse_expr.c b/src/backend/parser/parse_expr.c
index 7166138bf76..73c83cea4ac 100644
--- a/src/backend/parser/parse_expr.c
+++ b/src/backend/parser/parse_expr.c
@@ -4586,9 +4586,7 @@ transformJsonBehavior(ParseState *pstate, JsonBehavior *behavior,
!IsA(expr, OpExpr))
ereport(ERROR,
(errcode(ERRCODE_DATATYPE_MISMATCH),
- errmsg("can only specify constant, non-aggregate"
- " function, or operator expression for"
- " DEFAULT"),
+ errmsg("can only specify a constant, non-aggregate function, or operator expression for DEFAULT"),
parser_errposition(pstate, exprLocation(expr))));
if (contain_var_clause(expr))
ereport(ERROR,