Re: [BUGS] BUG #12070: hstore extension: hstore_to_json_loose produces invalid JSON

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: [BUGS] BUG #12070: hstore extension: hstore_to_json_loose produces invalid JSON
Дата
Msg-id 547B909E.4010801@dunslane.net
обсуждение исходный текст
Ответ на Re: [BUGS] BUG #12070: hstore extension: hstore_to_json_loose produces invalid JSON  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 11/30/2014 04:31 PM, Tom Lane wrote:
> Andrew Dunstan <andrew@dunslane.net> writes:
>> OK, here's the patch.
> Can we make IsValidJsonNumber() take a "const char *"?  Also its
> comment should specify that it doesn't require nul-terminated
> input, if indeed it doesn't.  Otherwise +1.
>
>             


Then I have to cast away the const-ness when I assign it inside the 
function. Constifying the whole API would be a rather larger project, I 
suspect, assuming it's possible.

cheers

andrew



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] BUG #12070: hstore extension: hstore_to_json_loose produces invalid JSON
Следующее
От: Robert Berry
Дата:
Сообщение: BDR Consistency in Insert/Update pkey conflicts