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 parent8fa09a1 commit8179d1bCopy full SHA for 8179d1b
src/backend/parser/parse_expr.c
@@ -3257,9 +3257,9 @@ transformJsonValueExpr(ParseState *pstate, const char *constructName,
3257
if (exprtype!=BYTEAOID&&typcategory!=TYPCATEGORY_STRING)
3258
ereport(ERROR,
3259
errcode(ERRCODE_DATATYPE_MISMATCH),
3260
-errmsg(ve->format->format_type==JS_FORMAT_DEFAULT ?
3261
-"cannot use non-string types with implicit FORMAT JSON clause" :
3262
-"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"),
3263
parser_errposition(pstate,ve->format->location >=0 ?
3264
ve->format->location :location));
3265