boolean as 0 and 1

Поиск
Список
Период
Сортировка
От A B
Тема boolean as 0 and 1
Дата
Msg-id dbbf25900804080254u4114154frede5d81376805555@mail.gmail.com
обсуждение исходный текст
Ответы Re: boolean as 0 and 1  ("Shoaib Mir" <shoaibmir@gmail.com>)
Re: boolean as 0 and 1  (Aarni Ruuhimäki <aarni@kymi.com>)
Список pgsql-novice
Hi,
Is there a way to make postgresql to automatically convert integer
values to boolean?

Consider

create table x (a boolean);
insert into x (a) values (1);

the inser fails :-(
Is there a way to make it work without altering the insert command?

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

Предыдущее
От: Pavel SRB
Дата:
Сообщение: Re: alter table
Следующее
От: "Shoaib Mir"
Дата:
Сообщение: Re: boolean as 0 and 1