Re: [HACKERS] BUG: NOT boolfield kills backend

From: Sferacarta Software <sferac(at)bo(dot)nettuno(dot)it>
To: PostgreSQL hackers list <pgsql-hackers(at)postgresql(dot)org>, Zsolt Varga <redax(at)agria(dot)hu>
Subject: Re: [HACKERS] BUG: NOT boolfield kills backend
Date: 1998-09-18 12:54:23
Message-ID: 9621.980918@bo.nettuno.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello Zsolt,

venerdì, 18 settembre 98, you wrote:

ZV> Hi,
ZV> I just found an error in every postgres versions,
ZV> (I tried 6.2.1, 6.3.2, and 6.4beta1 )

ZV> if I have a table with boolean field, and I want to negate that field,
ZV> it's kills the backend process... meanwhile 'select not ( 'T'::bool )'
ZV> works well...

ZV> create table t1 ( b bool );
ZV> insert into t1 values ( 'T' );

ZV> select not b from t1;

Wrong syntax.
The logical operator must be used in WHERE condition.
Try this: SELECT b FROM t1 WHERE NOT b;
It works! ;)

Jose'

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Sferacarta Software 1998-09-18 13:13:37 Re: [SQL] PostgreSQL syntax question
Previous Message Zsolt Varga 1998-09-18 10:39:16 BUG: NOT boolfield kills backend