[HACKERS] Re: [PATCHES] binary operators on integers

2001-01-23 Thread Tom Lane
I wrote: > Given the infrequency of use of postfix operators compared to prefix, > I am inclined to think that we should change the grammar to make the > latter easier to use at the expense of the former. On the other hand, > it seems there's a pretty large risk of backwards-incompatibility here.

[HACKERS] Re: [PATCHES] binary operators on integers

2001-01-21 Thread Marko Kreen
On Sat, Jan 20, 2001 at 01:31:49PM -0500, Tom Lane wrote: > Given the infrequency of use of postfix operators compared to prefix, > I am inclined to think that we should change the grammar to make the > latter easier to use at the expense of the former. On the other hand, > it seems there's a pre

[HACKERS] Re: [PATCHES] binary operators on integers

2001-01-20 Thread Tom Lane
Marko Kreen <[EMAIL PROTECTED]> writes: > 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 Correct, we did not rejigger the operator precedence. I played around with

[HACKERS] Re: [PATCHES] binary operators on integers

2000-10-24 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > 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' I think we're kind of stuck o