pgsql: Clean up handling of unknown-type inputs in json_build_object an

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Clean up handling of unknown-type inputs in json_build_object an
Дата
Msg-id E1XGEEc-0000Ll-8f@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Clean up handling of unknown-type inputs in json_build_object and friends.

There's actually no need for any special case for unknown-type literals,
since we only need to push the value through its output function and
unknownout() works fine.  The code that was here was completely bizarre
anyway, and would fail outright in cases that should work, not to mention
suffering from some copy-and-paste bugs.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/2591e623f5fc80a49347fb5e106aa1e03f713429

Modified Files
--------------
src/backend/utils/adt/json.c |  168 ++++++++++++++++++------------------------
1 file changed, 73 insertions(+), 95 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Clean up handling of unknown-type inputs in json_build_object an
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix conversion of domains to JSON in 9.3 and 9.2.