Re: Casting INT4 to BOOL...

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Casting INT4 to BOOL...
Дата
Msg-id 20041011194349.N32083@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Re: Casting INT4 to BOOL...  (Sean Chittenden <chitt@speakeasy.net>)
Ответы Re: Casting INT4 to BOOL...  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Casting INT4 to BOOL...  (Sean Chittenden <chitt@speakeasy.net>)
Список pgsql-patches
On Mon, 11 Oct 2004, Sean Chittenden wrote:

> > The patch treats any non-zero value as "true". Is that the behavior we
> > want, or should we only allow "1" as an integer representation of
> > "true"? (I'm not sure myself, I just don't think copying C here is
> > necessarily the best guide.)
>
> I would posit that this is the desired behavior as it's consistent with
> every language I can think of.

However, AFAIK it's inconsitent with the type input function which
supports '1' and '0' but not other integers.


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

Предыдущее
От: Neil Conway
Дата:
Сообщение: fix vpath build break
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Casting INT4 to BOOL...