hstore parser incorrectly handles malformed input

Поиск
Список
Период
Сортировка
От Ryan Kelly
Тема hstore parser incorrectly handles malformed input
Дата
Msg-id 20120426190513.GB31886@llserver.lakeliving.com
обсуждение исходный текст
Ответы Re: hstore parser incorrectly handles malformed input  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
It seems that the hstore parser has some odd behavior in the the
handling of certain malformed input constructions:

[db]> select 'a=>,b=>1'::hstore;
    hstore
--------------
 "a"=>",b=>1"

[db]> select 'a=> ,b=>1'::hstore;
    hstore
--------------
 "a"=>",b=>1"

[db]> select 'a=>, b=>1'::hstore;
ERROR:  Syntax error near 'b' at position 5
LINE 2: select 'a=>, b=>1'::hstore;

In my mind, all of these should have been rejected as erroneous input.
To that end, I have attached a patch which causes all of these inputs
to be rejected as invalid.

-Ryan Kelly

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: 291 pg_toast_temp schemas?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: hstore parser incorrectly handles malformed input