| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера