Postgresql doesn't understand the unary plus

Started by Martijn van Oosterhoutover 25 years ago2 messagesgeneral
Jump to latest
#1Martijn van Oosterhout
martijn@ecomtel.com.au

I definitly consider this a bug but other people may disagree with me. What
I want to know is if it's excluded for any particular reason.

=> select -1;
?column?
--------
-1
=> select +1;
ERROR: Unable to identify a left operator '+' for type 'int4'
You may need to add parentheses or an explicit cast

--
Martijn van Oosterhout

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Martijn van Oosterhout (#1)
Re: Postgresql doesn't understand the unary plus

Martijn van Oosterhout <martijn@ecomtel.com.au> writes:

I definitly consider this a bug but other people may disagree with me. What
I want to know is if it's excluded for any particular reason.

Nobody's bothered to write the operators. Are you volunteering?

regards, tom lane