pgsql: Revisit error message details for JSON input parsing.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Revisit error message details for JSON input parsing.
Дата
Msg-id E1SexEE-00034E-Sb@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Revisit error message details for JSON input parsing.

Instead of identifying error locations only by line number (which could
be entirely unhelpful with long input lines), provide a fragment of the
input text too, placing this info in a new CONTEXT entry.  Make the
error detail messages conform more closely to style guidelines, fix
failure to expose some of them for translation, ensure compiler can
check formats against supplied parameters.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/80edfd76591fdb9beec061de3c05ef4e9d96ce56

Modified Files
--------------
src/backend/utils/adt/json.c       |  211 +++++++++++++++++++++++++++---------
src/test/regress/expected/json.out |   99 +++++++++++------
2 files changed, 224 insertions(+), 86 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Remove release note entry for reverted patch.
Следующее
От: pgsql@postgresql.org
Дата:
Сообщение: pgsql: Branch refs/heads/REL9_2_STABLE was created