Re: BUG REPORT: Unable to cast boolean::smallint

Поиск
Список
Период
Сортировка
От Marko Tiikkaja
Тема Re: BUG REPORT: Unable to cast boolean::smallint
Дата
Msg-id 545A5240.1000600@joh.to
обсуждение исходный текст
Ответ на Re: BUG REPORT: Unable to cast boolean::smallint  (David G Johnston <david.g.johnston@gmail.com>)
Список pgsql-bugs
On 11/5/14 5:31 PM, David G Johnston wrote:
> Tom Lane-2 wrote
>> Well, there are also not direct casts provided from boolean to bigint,
>> numeric, real, or double precision ;-).  I'm not terribly excited about
>> this.
>
> So why is there one for Boolean to int?

That can be useful for e.g.  CHECK (bool1::int + bool2::int + bool3::int
= 1).


.marko

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: BUG #11882: make HAVE_WORKING_LINK an option
Следующее
От: hunsakerbn@familysearch.org
Дата:
Сообщение: BUG #11883: Year 1500 not treated as leap year when it was a leap year