Re: Casting INT4 to BOOL...

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Casting INT4 to BOOL...
Дата
Msg-id 200410120905.19154.peter_e@gmx.net
обсуждение исходный текст
Ответ на Re: Casting INT4 to BOOL...  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
Am Montag, 11. Oktober 2004 15:50 schrieb Tom Lane:
> I agree with Michael's position.  I don't like implicit/automatic casts
> any more than Peter does, but I don't see a strong argument against
> providing explicit casts.

I find the chosen mapping to be somewhat arbitrary and artifical.  (2::int =>
'2'::text is not arbitrary in my mind, but 1::int => true is just something a
C programmer could make up.)  But I'm clearly in the minority here.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Casting INT4 to BOOL...
Следующее
От: "Dave Page"
Дата:
Сообщение: Re: libpq.dll on win32