| От | Jasen Betts |
|---|---|
| Тема | Re: type cast about int to bit |
| Дата | |
| Msg-id | jgoc5b$l1j$6@reversiblemaps.ath.cx обсуждение исходный текст |
| Ответ на | type cast about int to bit (zoulx1982 <zoulx1982@163.com>) |
| Список | pgsql-sql |
does the mailing list mangle these, or is it just GMANE? On 2012-02-06, zoulx1982 <zoulx1982@163.com> wrote: >hi, >there is a problem about type cast that i don't understand, follow is my test. > >postgres=# select 10::bit(3); > bit >----- > 010 >(1 row) >postgres=# select 10::bit varying(3); >ERROR: cannot cast type integer to bit varying >LINE 1: select 10::bit varying(3); > ^ >postgres=# > >my question is why int can cast to bit , i want to know the reason. >thank you for your timing. possibly postgres doesn't know what size to make the result. -- ⚂⚃ 100% natural
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера