Re: How to implement Microsoft Access boolean (YESNO)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to implement Microsoft Access boolean (YESNO)
Дата
Msg-id 18437.1138114741@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: How to implement Microsoft Access boolean (YESNO)  (Greg Stark <gsstark@mit.edu>)
Список pgsql-sql
Greg Stark <gsstark@mit.edu> writes:
> Is there an implicit cast from ints? So if I pass a 0 or 1 argument for a
> boolean parameter now it'll work? That definitely didn't work in the past.

1. There's a cast.  2.  It's not implicit.  3. You have always (well,
at least since 7.0 which is the oldest version I have alive to check)
been able to write '0' or '1' as the input textual representation of
bool.  The latter has nothing to do with any integer coercion though.
        regards, tom lane


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

Предыдущее
От: PFC
Дата:
Сообщение: Re: How to implement Microsoft Access boolean (YESNO)
Следующее
От: "codeWarrior"
Дата:
Сообщение: Re: How to implement Microsoft Access boolean (YESNO) fieldtype in PostgreSQL ?