Code review for error reports in jsonb_set().
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/jsonfuncs.c | modified | +14 −10 |
| src/test/regress/expected/jsonb.out | modified | +6 −6 |