[PATCH] Fix escaping for '\' and '"' in pageinspect for gist

Поиск
Список
Период
Сортировка
От Roman Khapov
Тема [PATCH] Fix escaping for '\' and '"' in pageinspect for gist
Дата
Msg-id 96E68E0F-FE4C-4114-92C9-689AC6DF7634@yandex-team.ru
обсуждение исходный текст
Ответы Re: [PATCH] Fix escaping for '\' and '"' in pageinspect for gist
Re: [PATCH] Fix escaping for '\' and '"' in pageinspect for gist
Список pgsql-hackers
Hi hackers!

I noticed, that there is bug in escaping values that contains '\' or '"' in text representation
inside pageinspect for gist: the string 'foo"bar' are printed like "foo""bar" and not "foo\"bar".

To fix that, we should do appendStringInfoCharMacro(&buf, '\\'); instead of
appendStringInfoCharMacro(&buf, ch); in case ch is one of that symbols.

Any thoughts?

--
Best regards,
Roman Khapov


Вложения

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