Content-Length: 266967 | pFad | http://github.com/postgrespro/postgres/commit/9efcf442b9a4035be2692525be81a23224288d1b

C9 Fix translation markers · postgrespro/postgres@9efcf44 · GitHub
Skip to content

Commit 9efcf44

Browse files
committed
Fix translation markers
Conditionals cannot be inside gettext trigger functions, they must be applied outside.
1 parent f9f3bea commit 9efcf44

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/parser/parse_expr.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3276,9 +3276,9 @@ transformJsonValueExpr(ParseState *pstate, const char *constructName,
32763276
exprtype != BYTEAOID && typcategory != TYPCATEGORY_STRING)
32773277
ereport(ERROR,
32783278
errcode(ERRCODE_DATATYPE_MISMATCH),
3279-
errmsg(ve->format->format_type == JS_FORMAT_DEFAULT ?
3280-
"cannot use non-string types with implicit FORMAT JSON clause" :
3281-
"cannot use non-string types with explicit FORMAT JSON clause"),
3279+
ve->format->format_type == JS_FORMAT_DEFAULT ?
3280+
errmsg("cannot use non-string types with implicit FORMAT JSON clause") :
3281+
errmsg("cannot use non-string types with explicit FORMAT JSON clause"),
32823282
parser_errposition(pstate, ve->format->location >= 0 ?
32833283
ve->format->location : location));
32843284

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/9efcf442b9a4035be2692525be81a23224288d1b

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy