aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_expr.c
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:25:51 +0200
commit9efcf442b9a4035be2692525be81a23224288d1b (patch)
tree3440171fc06b58cc5cac98b2b24dd1ea15746197 /src/backend/parser/parse_expr.c
parentf9f3bea168496990037c55dd6961010e1acbba92 (diff)
downloadpostgresql-9efcf442b9a4035be2692525be81a23224288d1b.tar.gz
postgresql-9efcf442b9a4035be2692525be81a23224288d1b.zip
Fix translation markers
Conditionals cannot be inside gettext trigger functions, they must be applied outside.
Diffstat (limited to 'src/backend/parser/parse_expr.c')
-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 aa726651a6e..64c582c344c 100644
--- a/src/backend/parser/parse_expr.c
+++ b/src/backend/parser/parse_expr.c
@@ -3276,9 +3276,9 @@ transformJsonValueExpr(ParseState *pstate, const char *constructName,
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));