Error message stylistic correction
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 4 Nov 2025 10:59:17 +0000 (11:59 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 4 Nov 2025 11:25:04 +0000 (12:25 +0100)
Fixup for commit ef5e60a9d35: The inconsistent use of articles was a
bit awkward.

src/backend/parser/parse_expr.c
src/test/regress/expected/collate.icu.utf8.out

index 12119f147fc164dd4d46f43d8cd9bf78103b2ff4..32d6ae918caa995b9f6ea8280c30cc934dd9ac14 100644 (file)
@@ -4772,7 +4772,7 @@ transformJsonBehavior(ParseState *pstate, JsonExpr *jsexpr,
                                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)),
index 05d8b3b369e758d55e530adf7a868f0369aa9913..b8579a1efc63d07211e7cd290db2dbb1bc40f910 100644 (file)
@@ -2711,12 +2711,12 @@ SELECT JSON_VALUE('{"a": "A"}', '$.a' RETURNING d1 DEFAULT 'C' ON EMPTY) = 'a';
 (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"
@@ -2733,12 +2733,12 @@ SELECT JSON_VALUE('{"a": "A"}', '$.c' RETURNING d1 DEFAULT 'A' COLLATE case_inse
 (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"