Fix translation markers
Conditionals cannot be inside gettext trigger functions, they must be applied outside.
This commit is contained in:
parent
f9f3bea168
commit
9efcf442b9
@ -3276,9 +3276,9 @@ transformJsonValueExpr(ParseState *pstate, const char *constructName,
|
|||||||
exprtype != BYTEAOID && typcategory != TYPCATEGORY_STRING)
|
exprtype != BYTEAOID && typcategory != TYPCATEGORY_STRING)
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
errcode(ERRCODE_DATATYPE_MISMATCH),
|
errcode(ERRCODE_DATATYPE_MISMATCH),
|
||||||
errmsg(ve->format->format_type == JS_FORMAT_DEFAULT ?
|
ve->format->format_type == JS_FORMAT_DEFAULT ?
|
||||||
"cannot use non-string types with implicit FORMAT JSON clause" :
|
errmsg("cannot use non-string types with implicit FORMAT JSON clause") :
|
||||||
"cannot use non-string types with explicit FORMAT JSON clause"),
|
errmsg("cannot use non-string types with explicit FORMAT JSON clause"),
|
||||||
parser_errposition(pstate, ve->format->location >= 0 ?
|
parser_errposition(pstate, ve->format->location >= 0 ?
|
||||||
ve->format->location : location));
|
ve->format->location : location));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user