We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent6368bbb commitbf51cbdCopy full SHA for bf51cbd
src/backend/parser/parse_expr.c
@@ -3276,9 +3276,9 @@ transformJsonValueExpr(ParseState *pstate, const char *constructName,
3276
exprtype!=BYTEAOID&&typcategory!=TYPCATEGORY_STRING)
3277
ereport(ERROR,
3278
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"),
+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"),
3282
parser_errposition(pstate,ve->format->location >=0 ?
3283
ve->format->location :location));
3284