aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2023-08-24 10:24:38 +0200
committerPeter Eisentraut <peter@eisentraut.org>2023-08-24 10:24:38 +0200
commit8179d1bdf7763bab8a55022268bcfada011e8a4f (patch)
treed07a592ac498e2d018c03fc6f52e1f9bdabe7347 /src
parent8fa09a11c994b85a4f4e6c09c5465f561b17c22b (diff)
downloadpostgresql-8179d1bdf7763bab8a55022268bcfada011e8a4f.tar.gz
postgresql-8179d1bdf7763bab8a55022268bcfada011e8a4f.zip
Fix translation markers
Conditionals cannot be inside gettext trigger functions, they must be applied outside.
Diffstat (limited to 'src')
-rw-r--r--src/backend/parser/parse_expr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/parser/parse_expr.c b/src/backend/parser/parse_expr.c
index de5732622fe..5316275b69c 100644
--- a/src/backend/parser/parse_expr.c
+++ b/src/backend/parser/parse_expr.c
@@ -3257,9 +3257,9 @@ transformJsonValueExpr(ParseState *pstate, const char *constructName,
if (exprtype != BYTEAOID && typcategory != TYPCATEGORY_STRING)
ereport(ERROR,
errcode(ERRCODE_DATATYPE_MISMATCH),
- errmsg(ve->format->format_type == JS_FORMAT_DEFAULT ?
- "cannot use non-string types with implicit FORMAT JSON clause" :
- "cannot use non-string types with explicit FORMAT JSON clause"),
+ ve->format->format_type == JS_FORMAT_DEFAULT ?
+ errmsg("cannot use non-string types with implicit FORMAT JSON clause") :
+ errmsg("cannot use non-string types with explicit FORMAT JSON clause"),
parser_errposition(pstate, ve->format->location >= 0 ?
ve->format->location : location));