pgsql: Remove ill-conceived ban on zero length json object keys.

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема pgsql: Remove ill-conceived ban on zero length json object keys.
Дата
Msg-id E1XXETK-00046d-Lg@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Remove ill-conceived ban on zero length json object keys.

We removed a similar ban on this in json_object recently, but the ban in
datum_to_json was left, which generate4d sprutious errors in othee json
generators, notable json_build_object.

Along the way, add an assertion that datum_to_json is not passed a null
key. All current callers comply with this rule, but the assertion will
catch any possible future misbehaviour.

Branch
------
REL9_4_STABLE

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

Modified Files
--------------
src/backend/utils/adt/json.c |    7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: pgsql: Remove ill-conceived ban on zero length json object keys.
Следующее
От: Andres Freund
Дата:
Сообщение: pgsql: Add a basic atomic ops API abstracting away platform/architectur