Re: binary operators on integers - Mailing list pgsql-patches

From Marko Kreen
Subject Re: binary operators on integers
Date
Msg-id 20010120173127.A10475@l-t.ee
Whole thread Raw
In response to Re: binary operators on integers  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: binary operators on integers  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
On Fri, Jan 19, 2001 at 04:30:09PM -0500, Bruce Momjian wrote:
> Looks like this is fixed:
>
>     test=> select 5 & ~ 6;
>     ERROR:  Unable to identify a right operator '&' for type 'int4'
>             You may need to add parentheses or an explicit cast
>     test=> select 5 & (~ 6);
>      ?column?
>     ----------
>             1
>     (1 row)

I can still reproduce it:

marko=# SELECT 5 & ~6;
ERROR:  Unable to identify a right operator '&' for type 'int4'
        You may need to add parentheses or an explicit cast


Or did you mean it can be fixed with parenthesis?  That was the
case from the beginning.


>
> > This patch was installed, with xor as "#".  The parser still needs work.
> > Besides the known issue of "|", this also parses funny:
> >
> > => select 5 & ~ 6;
> > ERROR:  Unable to identify a right operator '&' for type 'int4'
> >

--
marko


pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: binary operators on integers
Next
From: Tom Lane
Date:
Subject: Re: binary operators on integers