]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Reword recent error messages: "should" -> "must"
authorÁlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 21 Jan 2025 14:24:49 +0000 (15:24 +0100)
committerÁlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 21 Jan 2025 14:24:49 +0000 (15:24 +0100)
commitdbc3499a0bcb544d30ec4f6fe576b28ce0a7951f
tree4d0d8f7ce39a5d9a4ec442942adf5dbc858f5eda
parent2f30847d1d04bafa51a17886e132892e38df093f
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
src/backend/tsearch/wparser_def.c
src/backend/utils/adt/jsonpath_exec.c
src/test/regress/expected/sqljson_jsontable.out
src/test/regress/expected/sqljson_queryfuncs.out