boolean as 0 and 1 - Mailing list pgsql-novice

From A B
Subject boolean as 0 and 1
Date
Msg-id dbbf25900804080254u4114154frede5d81376805555@mail.gmail.com
Whole thread Raw
Responses Re: boolean as 0 and 1  ("Shoaib Mir" <shoaibmir@gmail.com>)
Re: boolean as 0 and 1  (Aarni Ruuhimäki <aarni@kymi.com>)
List 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 by date:

Previous
From: Pavel SRB
Date:
Subject: Re: alter table
Next
From: "Shoaib Mir"
Date:
Subject: Re: boolean as 0 and 1