Ah, thanks!

On Tue, Feb 16, 2016 at 7:54 PM, Peter Geoghegan <p...@heroku.com> wrote:

> On Tue, Feb 16, 2016 at 7:27 PM, Feng Tian <ft...@vitessedata.com> wrote:
> > I run into the following.   Seems this is a bug for -32768, which should
> be
> > a valid smallint value.
>
> This isn't a bug. You see the error only due to operator precedence:
>
> postgres=# select (-32768)::int2;
>   int2
> ─────────
>  -32,768
> (1 row)
>
> --
> Peter Geoghegan
>

Reply via email to