Re: bit strings - anyone working on them?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: bit strings - anyone working on them?
Дата
Msg-id 26693.1051111774@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: bit strings - anyone working on them?  (Philip Warner <pjw@rhyme.com.au>)
Ответы Re: bit strings - anyone working on them?
Список pgsql-hackers
Philip Warner <pjw@rhyme.com.au> writes:
> At 10:36 AM 23/04/2003 -0400, Tom Lane wrote:
>> assumption that the result of casting int to bit(n) and then to bit(m)
>> should agree with the result of casting int directly to bit(m).

> I'm not sure I follow the implication; in fact I would hope that:
>      Cast(B'0001' as bit(10))
> would yield '0001000000'.

Yes, and what will    Cast( Cast(42 as bit(32)) as bit(10))
yield?  Unless you make the second cast truncate at the left, you'll get
ten zero bits out of this.
        regards, tom lane



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

Предыдущее
От: Philip Warner
Дата:
Сообщение: Re: bit strings - anyone working on them?
Следующее
От: "scott.marlowe"
Дата:
Сообщение: Re: Are we losing momentum?