]> granicus.if.org Git - postgresql/commit
Improve error reporting in jsonpath
authorAlexander Korotkov <akorotkov@postgresql.org>
Tue, 23 Apr 2019 14:43:09 +0000 (17:43 +0300)
committerAlexander Korotkov <akorotkov@postgresql.org>
Tue, 7 May 2019 22:02:59 +0000 (01:02 +0300)
commit29ceacc3f93720d3ebb7e7e999f8b7fe9622389c
tree578dcb45d91208e74a877a76a7638a047425ede7
parentb84dbc8eb80b43e554891c459a19969d9fbdefe5
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
src/backend/utils/adt/jsonpath_exec.c
src/backend/utils/adt/jsonpath_gram.y
src/backend/utils/adt/jsonpath_scan.l
src/test/regress/expected/jsonb_jsonpath.out
src/test/regress/expected/jsonpath.out
src/test/regress/expected/jsonpath_encoding.out
src/test/regress/expected/jsonpath_encoding_1.out