| От | Tom Lane |
|---|---|
| Тема | Re: PQunescapeBytea code |
| Дата | |
| Msg-id | 4361.1067620912@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | PQunescapeBytea code ("Jeroen T. Vermeulen" <jtv@xs4all.nl>) |
| Список | pgsql-hackers |
"Jeroen T. Vermeulen" <jtv@xs4all.nl> writes:
> This code completely ignores any other usage of the backslash in the
> escaped string, generating no output for unknown escape sequences. Is
> that the desired behaviour?
As Adam pointed out, the code does do the right thing for other
backslash sequences; it just processes the character on the following
loop iteration. I'll add a comment to explain this.
I see another issue here, which is that for a zero-length input string
we will do malloc(0) and realloc(foo, 0), neither of which are very
portable. Will fix.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера