Re: bit strings - anyone working on them?

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: bit strings - anyone working on them?
Дата
Msg-id Pine.LNX.4.44.0304231658550.1676-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: bit strings - anyone working on them?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: bit strings - anyone working on them?
Список pgsql-hackers
Tom Lane writes:

> Is there a way out of this?  I'm not sure.  I don't think that the SQL
> spec's bitstring definitions are really intended to allow sensible
> mappings to integer values --- so maybe there is no way to satisfy the
> spec and have natural integer mappings at the same time.

They are "bit strings" after all, not binary numbers.  If you need a
binary number, use any numeric type and format the input and output
accordingly.

As for converting between bit strings and numbers, maybe we should make
pairs of explicit functions that assume one bit order or another, and
remove the casts.

All things considered, it was probably a good idea that they removed bit
strings in SQL200x.

-- 
Peter Eisentraut   peter_e@gmx.net



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

Предыдущее
От: Philip Warner
Дата:
Сообщение: Re: bit strings - anyone working on them?
Следующее
От: Barry Lind
Дата:
Сообщение: Re: First draft of new FE/BE protocol spec posted for comments