Logical operators don't work

From: darcy(at)druid(dot)net (D'Arcy J(dot)M(dot) Cain)
To: pgsql-hackers(at)PostgreSQL(dot)org
Subject: Logical operators don't work
Date: 2001-03-13 12:18:36
Message-ID: 20010313121836.9A7191A64@druid.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

The logical operators '&', '|', '<<' and '>>' as documented on the page
http://www.postgresql.org/devel-corner/docs/postgres/functions.html don't
appear to work as advertised.

darcy=# SELECT 91 & 15;
ERROR: Unable to identify an operator '&' for types 'int4' and 'int4'
You will have to retype this query using an explicit cast

Should this be fixed or should the documentation be changed?

--
D'Arcy J.M. Cain <darcy(at){druid|vex}.net> | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Marko Kreen 2001-03-13 12:43:42 Re: Logical operators don't work
Previous Message Mike Mascari 2001-03-13 10:58:12 RE: Performance monitor