]> granicus.if.org Git - postgresql/commit
Code review for error reports in jsonb_set().
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 23 Mar 2016 15:00:39 +0000 (11:00 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 23 Mar 2016 15:00:39 +0000 (11:00 -0400)
commitea4b8bd6188ecb17ba37d93f57b8b020a964e66c
tree130eb9b9e464fabc4c9fe0436a76e5a7290b2664
parent384dfbde19330541f7fb487f9352949aa06c812e
Code review for error reports in jsonb_set().

User-facing (even tested by regression tests) error conditions were thrown
with elog(), hence had wrong SQLSTATE and were untranslatable.  And the
error message texts weren't up to project style, either.
src/backend/utils/adt/jsonfuncs.c
src/test/regress/expected/jsonb.out