targetcoll != exprcoll)
ereport(ERROR,
errcode(ERRCODE_COLLATION_MISMATCH),
- errmsg("the collation of DEFAULT expression conflicts with RETURNING clause"),
+ errmsg("collation of DEFAULT expression conflicts with RETURNING clause"),
errdetail("\"%s\" versus \"%s\"",
get_collation_name(exprcoll),
get_collation_name(targetcoll)),
(1 row)
SELECT JSON_VALUE('{"a": "A"}', '$.a' RETURNING d1 DEFAULT 'C'::d2 ON EMPTY) = 'a'; -- error
-ERROR: the collation of DEFAULT expression conflicts with RETURNING clause
+ERROR: collation of DEFAULT expression conflicts with RETURNING clause
LINE 1: ...ON_VALUE('{"a": "A"}', '$.a' RETURNING d1 DEFAULT 'C'::d2 ON...
^
DETAIL: "C" versus "case_insensitive"
SELECT JSON_VALUE('{"a": "A"}', '$.a' RETURNING d1 DEFAULT 'C' COLLATE "C" ON EMPTY) = 'a'; -- error
-ERROR: the collation of DEFAULT expression conflicts with RETURNING clause
+ERROR: collation of DEFAULT expression conflicts with RETURNING clause
LINE 1: ...ON_VALUE('{"a": "A"}', '$.a' RETURNING d1 DEFAULT 'C' COLLAT...
^
DETAIL: "C" versus "case_insensitive"
(1 row)
SELECT JSON_VALUE('{"a": "A"}', '$.c' RETURNING d1 DEFAULT 'A'::d2 ON EMPTY) = 'a'; -- error
-ERROR: the collation of DEFAULT expression conflicts with RETURNING clause
+ERROR: collation of DEFAULT expression conflicts with RETURNING clause
LINE 1: ...ON_VALUE('{"a": "A"}', '$.c' RETURNING d1 DEFAULT 'A'::d2 ON...
^
DETAIL: "C" versus "case_insensitive"
SELECT JSON_VALUE('{"a": "A"}', '$.c' RETURNING d1 DEFAULT 'A' COLLATE "C" ON EMPTY) = 'a'; -- error
-ERROR: the collation of DEFAULT expression conflicts with RETURNING clause
+ERROR: collation of DEFAULT expression conflicts with RETURNING clause
LINE 1: ...ON_VALUE('{"a": "A"}', '$.c' RETURNING d1 DEFAULT 'A' COLLAT...
^
DETAIL: "C" versus "case_insensitive"