From: Greg Stark <gsstark@mit.edu>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Marc G. Fournier <scrappy@postgresql.org>
Cc: pgsql-hackers@postgresql.org
Subject: Re: ALTER TABLE ( smallinto -> boolean ) ...
Date: 30 Aug 2005 09:17:42 -0400
Message-ID: <874q974l8p.fsf@stark.xeocode.com> (raw)
In-Reply-To: <15013.1125359379@sss.pgh.pa.us>
References: <20050829201253.X1044@ganymede.hub.org>
<15013.1125359379@sss.pgh.pa.us>
Tom Lane <tgl@sss.pgh.pa.us> writes:
> You could do something like
>
> ... type boolean using case when field1=0 then false else true end;
Or you could save typing and just use "USING field1<>0"
Odd that everyone did a CASE for that.
--
greg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: gsstark@mit.edu, tgl@sss.pgh.pa.us, scrappy@postgresql.org, pgsql-hackers@postgresql.org
Subject: Re: ALTER TABLE ( smallinto -> boolean ) ...
In-Reply-To: <874q974l8p.fsf@stark.xeocode.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox