pgsql: Code review for error reports in jsonb_set().

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Code review for error reports in jsonb_set().
Дата
Msg-id E1aikHD-0001Lr-Ju@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/ea4b8bd6188ecb17ba37d93f57b8b020a964e66c

Modified Files
--------------
src/backend/utils/adt/jsonfuncs.c   | 24 ++++++++++++++----------
src/test/regress/expected/jsonb.out | 12 ++++++------
2 files changed, 20 insertions(+), 16 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix unsafe use of strtol() on a non-null-terminated Text datum.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Code review for error reports in jsonb_set().