Обсуждение: Postgresql doesn't understand the unary plus

Поиск
Список
Период
Сортировка

Postgresql doesn't understand the unary plus

От
Martijn van Oosterhout
Дата:
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

Re: Postgresql doesn't understand the unary plus

От
Tom Lane
Дата:
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