boolean as 0 and 1

Поиск
Список
Период
Сортировка
От A B
Тема boolean as 0 and 1
Дата
Msg-id dbbf25900804080254u4114154frede5d81376805555@mail.gmail.com
обсуждение исходный текст
Ответы Re: boolean as 0 and 1
Re: boolean as 0 and 1
Список 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 по дате отправления: