Re: binary operators on integers
От | Marko Kreen |
---|---|
Тема | Re: binary operators on integers |
Дата | |
Msg-id | 20010120173127.A10475@l-t.ee обсуждение исходный текст |
Ответ на | Re: binary operators on integers (Bruce Momjian <pgman@candle.pha.pa.us>) |
Ответы |
Re: binary operators on integers
|
Список | 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 по дате отправления: