Re: PQescapeBytea v 7.2.3 BUG?

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: PQescapeBytea v 7.2.3 BUG?
Дата
Msg-id 3DCFDE26.3040705@joeconway.com
обсуждение исходный текст
Ответ на PQescapeBytea v 7.2.3 BUG?  (Reid Thompson <reid.thompson@ateb.com>)
Список pgsql-hackers
Reid Thompson wrote:
> should
[...snip...]
> result in the following output?
> 
> char[0] is [\]
> char[1] is [\]
> char[2] is [\]
> char[3] is [\]
> esclen is [5]
> buffer2Ptr is [\\\\]
> 
> OR should it result in
> char[0] is [\]
> char[1] is [\]
> esclen is [3]
> buffer2Ptr is [\\]

It should result in the former:

test=# select '\\\\'::bytea as string, length('\\\\'::bytea) as length; string | length
--------+-------- \\     |      1
(1 row)


HTH,

Joe



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

Предыдущее
От: Dennis Björklund
Дата:
Сообщение: Re: Implicit coercions, choosing types for constants, etc
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Implicit coercions, choosing types for constants, etc (yet again)