RE: (7.1) BIT datatype

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема RE: (7.1) BIT datatype
Дата
Msg-id NEBBIOAJBMEENKACLNPCAELMCCAA.chriskl@familyhealth.com.au
обсуждение исходный текст
Ответ на (7.1) BIT datatype  ("Oliver Elphick" <olly@lfix.co.uk>)
Ответы Re: (7.1) BIT datatype  ("Oliver Elphick" <olly@lfix.co.uk>)
Список pgsql-hackers
> Some SQL92 functionality is missing from the BIT and VARBIT types.
>
> It should be possible to enter hexadecimal values as:
>
>   B'[<bit>...]'[{<separator>...'[<bit...]'}...]
>   X'[<hexdigit>...]'[{<separator>...'[<hexdigit...]'}...]
>
> (Cannan and Otten: SQL - The Standard Handbook, p.38)
>
> but the hexadeximal form is not accepted.


I have been using the BIT and VARBIT types in Postgres 7.0.3 (undocumented I
believe), and I note that the _input_ format is as follows:

update blah set flags='b101001';  -- Binary
update blah set flags='xff45';  -- Hex

But the _output_ format (for varbit) is always:

B'1010110'

Has any of this changed in 7.1?

Chris



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

Предыдущее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: RE: Inline Comments for pg_dump
Следующее
От: "Oliver Elphick"
Дата:
Сообщение: Re: (7.1) BIT datatype