Improve error reporting in jsonpath
Alexander Korotkov <akorotkov@postgresql.org>
Improve error reporting in jsonpath This commit contains multiple improvements to error reporting in jsonpath including but not limited to getting rid of following things: * definition of error messages in macros, * errdetail() when valueable information could fit to errmsg(), * word "singleton" which is not properly explained anywhere, * line breaks in error messages. Reported-by: Tom Lane Discussion: https://postgr.es/m/14890.1555523005%40sss.pgh.pa.us Author: Alexander Korotkov Reviewed-by: Tom Lane
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/jsonpath_exec.c | modified | +33 −87 |
| src/backend/utils/adt/jsonpath_gram.y | modified | +5 −1 |
| src/backend/utils/adt/jsonpath_scan.l | modified | +11 −12 |
| src/test/regress/expected/jsonb_jsonpath.out | modified | +48 −89 |
| src/test/regress/expected/jsonpath_encoding_1.out | modified | +6 −6 |
| src/test/regress/expected/jsonpath_encoding.out | modified | +6 −12 |
| src/test/regress/expected/jsonpath.out | modified | +21 −40 |
Discussion
- jsonpath 198 messages · 2018-01-07 → 2019-05-17