Re: casting from integer to boolean - Mailing list pgsql-general

From Seb
Subject Re: casting from integer to boolean
Date
Msg-id 87abklqfwd.fsf@patagonia.sebmags.homelinux.org
Whole thread Raw
In response to casting from integer to boolean  (Seb <spluque@gmail.com>)
Responses Re: casting from integer to boolean
Re: casting from integer to boolean
Re: casting from integer to boolean
Re: casting from integer to boolean
List pgsql-general
On Wed, 26 Mar 2008 15:11:47 -0700,
"Richard Broersma" <richard.broersma@gmail.com> wrote:

[...]

> INSERT INTO my_table (var_bool) VALUES ( CAST( 0 AS BOOLEAN )); or
> INSERT INTO my_table (var_bool) VALUES (0::BOOLEAN);


Thanks Richard.  Is there a way to do it without changing the INSERT
command?  As I mentioned, there are many more columns of different
types, so finding and replacing the VALUES would be very difficult.


--
Seb

pgsql-general by date:

Previous
From: "Richard Broersma"
Date:
Subject: Re: casting from integer to boolean
Next
From: "Adam Rich"
Date:
Subject: Re: casting from integer to boolean