Re: [BUGS] BUG #4007: chr(0) doesn't work anymore

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: [BUGS] BUG #4007: chr(0) doesn't work anymore
Дата
Msg-id 47CC3D51.1020708@dunslane.net
обсуждение исходный текст
Ответ на Re: [BUGS] BUG #4007: chr(0) doesn't work anymore  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: [BUGS] BUG #4007: chr(0) doesn't work anymore  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-patches

Bruce Momjian wrote:
> Tom Lane wrote:
>
>> Steve Clark <sclark@netwolves.com> writes:
>>
>>> I'm not sure I understand what you mean about TEXT being null-safe.
>>> What are the issues, and why was
>>> it supported for years and now abruptly changed.
>>>
>> It never was supported, we are simply plugging a hole that let you
>> create a text value that would be likely to malfunction in subsequent
>> use.
>>
>
> Seems we never documented that chr(0) is not supported.  I have applied
> the following doc patch to CVS HEAD and 8.3.X.
>
>
>   The NULL (0) character is not
>   allowed because text data types cannot reliably store such bytes.
>
>



"Reliably" is arguably misleading here.

cheers

andrew

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: sinval.c / sinvaladt.c restructuring
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [BUGS] BUG #4007: chr(0) doesn't work anymore