Re: [sferac@bo.nettuno.it: Re: [HACKERS] BUG: NOT boolfield kills backend]

From: "Thomas G(dot) Lockhart" <lockhart(at)alumni(dot)caltech(dot)edu>
To: Christopher Oliver <oliver(at)fritz(dot)traverse(dot)net>, techguys(at)traverse(dot)net
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [sferac@bo.nettuno.it: Re: [HACKERS] BUG: NOT boolfield kills backend]
Date: 1998-09-21 17:43:25
Message-ID: 3606903D.930DC219@alumni.caltech.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> > ZV> create table t1 ( b bool );
> > ZV> insert into t1 values ( 'T' );
> > ZV> select not b from t1;
> > Wrong syntax.
> Not if he is trying to display the complement of a logical field
> rather than restrict a selection.

(I've lost who started this thread, so if it isn't "techguys" sorry for
the misdirection...)

It looks like "NOT anything" is pretty broken at the moment. However,
try

select b is false from t1;

to get what you want. The only problem with this is that it would mask
NULL fields if you have any.

- Tom

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Anand Surelia 1998-09-21 19:05:52 Foreign Keys: check_primary_function
Previous Message Thomas G. Lockhart 1998-09-21 17:04:08 Re: [sferac@bo.nettuno.it: Re: [HACKERS] BUG: NOT boolfield kills backend]