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

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: [PATCH] hstore_to_json: empty hstores must return empty json objects
Дата
Msg-id CAHyXU0zWhtu+G0AaY71KOb7VrUeFtoJ+OexmLEGe+3HcVZO=bw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [PATCH] hstore_to_json: empty hstores must return empty json objects  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On Thu, Oct 17, 2013 at 7:20 AM, Robert Haas <robertmhaas@gmail.com> wrote:
> 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?

It is a bug.

merlin



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

Предыдущее
От: Merlin Moncure
Дата:
Сообщение: Re: Unitialized Values in record_image_cmp
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Unitialized Values in record_image_cmp