Re: unary plus - Mailing list pgsql-patches

From Tom Lane
Subject Re: unary plus
Date
Msg-id 8294.991429766@sss.pgh.pa.us
Whole thread Raw
In response to unary plus  (Marko Kreen <marko@l-t.ee>)
Responses Re: unary plus  (Marko Kreen <marko@l-t.ee>)
List pgsql-patches
Marko Kreen <marko@l-t.ee> writes:
> This is unary plus.  One time somebody complained about it,
> then some time later thought about it and implemented it.

I'd vote against the gram.y part of this change (doUnaryPlus),
but the rest looks OK.

The reason we have doNegate is mainly so that MININT can be represented
without overflow (assuming that atoi gets it right, of course).  There's
no corresponding issue with unary plus, and no good reason to hard-wire
assumptions about the operator's semantics into gram.y.

            regards, tom lane

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [Fwd: Patch for MULTIBYTE and SQL_ASCII (was Re: [JDBC] Re: A bug with pgsql 7.1/jdbc and non-ascii (8-bit) chars?)]]
Next
From: Tom Lane
Date:
Subject: Re: show all;