Reword recent error messages: "should" -> "must"
Álvaro Herrera <alvherre@alvh.no-ip.org>
Reword recent error messages: "should" -> "must" Most were introduced in the 17 timeframe. The ones in wparser_def.c are very old. I also changed "JSON path expression for column \"%s\" should return single item without wrapper" to "JSON path expression for column \"%s\" must return single item when no wrapper is requested" to avoid ambiguity. Backpatch to 17. Crickets: https://postgr.es/m/202501131819.26ors7oouafu@alvherre.pgsql
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/tsearch/wparser_def.c | modified | +4 −4 |
| src/backend/utils/adt/jsonpath_exec.c | modified | +6 −6 |
| src/test/regress/expected/sqljson_jsontable.out | modified | +1 −1 |
| src/test/regress/expected/sqljson_queryfuncs.out | modified | +4 −4 |