Missing prefix unary '+' operator in Table 4-2 ?

Started by Grzegorz Szpetkowskialmost 15 years ago2 messagesdocs
Jump to latest
#1Grzegorz Szpetkowski
gszpetkowski@gmail.com

I have question about Table 4-2. Operator Precedence (decreasing) on
http://www.postgresql.org/docs/9.0/static/sql-syntax-lexical.html. I
see there is '-' unary (unary minus) operator listed, but I can't see
'+' (unary plus) prefix operator there. I think that it does not
belong to "(any other)" group as:

SELECT 5 ! + 6;
ERROR: operator does not exist: integer ! integer
LINE 1: SELECT 5 ! + 6;

Regards,
Grzegorz Szpetkowski

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Grzegorz Szpetkowski (#1)
Re: Missing prefix unary '+' operator in Table 4-2 ?

Grzegorz Szpetkowski <gszpetkowski@gmail.com> writes:

I have question about Table 4-2. Operator Precedence (decreasing) on
http://www.postgresql.org/docs/9.0/static/sql-syntax-lexical.html. I
see there is '-' unary (unary minus) operator listed, but I can't see
'+' (unary plus) prefix operator there.

Hm, yeah, that probably should be listed. Will fix.

regards, tom lane