mirror of
https://github.com/postgres/postgres.git
synced 2026-03-09 01:31:22 -04:00
Fix translation markers
Conditionals cannot be inside gettext trigger functions, they must be applied outside.
This commit is contained in:
parent
8fa09a11c9
commit
8179d1bdf7
1 changed files with 3 additions and 3 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue