Re: [PATCH] hstore_to_json: empty hstores must return empty json objects

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: [PATCH] hstore_to_json: empty hstores must return empty json objects
Дата
Msg-id CA+TgmoZjMKZ_k5o6j4cpynwjx2jcoj8TTxtP0yiVcYn5m6U=7g@mail.gmail.com
обсуждение исходный текст
Ответ на [PATCH] hstore_to_json: empty hstores must return empty json objects  (Oskari Saarenmaa <os@ohmu.fi>)
Ответы Re: [PATCH] hstore_to_json: empty hstores must return empty json objects  (Merlin Moncure <mmoncure@gmail.com>)
Re: [PATCH] hstore_to_json: empty hstores must return empty json objects  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
On Wed, Oct 16, 2013 at 12:02 PM, Oskari Saarenmaa <os@ohmu.fi> wrote:
> hstore_to_json used to return an empty string for empty hstores, but
> that is not correct as an empty string is not valid json and calling
> row_to_json() on rows which have empty hstores will generate invalid
> json for the entire row.  The right thing to do is to return an empty
> json object.

Hmm.  This sure looks like a bug to me.

Anyone think otherwise?

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: ERROR : 'tuple concurrently updated'
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Auto-tuning work_mem and maintenance_work_mem