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 547607D4.7030508@dunslane.net
обсуждение исходный текст
Ответ на Re: [BUGS] BUG #12070: hstore extension: hstore_to_json_loose produces invalid JSON  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
On 11/26/2014 11:48 AM, Andrew Dunstan wrote:
>
>
>
>
> In json.c we now check numbers like this:
>
>    JsonLexContext dummy_lex;
>    bool        numeric_error;
>    ...
>    dummy_lex.input = *outputstr == '-' ? outputstr + 1 : outputstr;
>    dummy_lex.input_length = strlen(dummy_lex.input);
>    json_lex_number(&dummy_lex, dummy_lex.input, &numeric_error);
>
> numeric_error is true IFF outputstr is a legal json number.

er is NOT a legal json number

cheers

andrew






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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: [BUGS] BUG #12070: hstore extension: hstore_to_json_loose produces invalid JSON
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: [pgsql-packagers] Palle Girgensohn's ICU patch