Refactor/reword some error messages to avoid duplicates
Alvaro Herrera <alvherre@alvh.no-ip.org>
Refactor/reword some error messages to avoid duplicates Also, remove brackets around "EMPTY [ ARRAY ]". An error message is not the place to state that a keyword is optional. Backpatch to 17.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/executor/execExprInterp.c | modified | +6 −2 |
| src/backend/parser/parse_expr.c | modified | +63 −27 |
| src/backend/parser/parse_jsontable.c | modified | +2 −2 |
| src/test/regress/expected/sqljson_jsontable.out | modified | +2 −2 |
| src/test/regress/expected/sqljson_queryfuncs.out | modified | +1 −1 |