Re: BUG #1444: ::int2 parser bug - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #1444: ::int2 parser bug
Date
Msg-id 10188.1107032738@sss.pgh.pa.us
Whole thread Raw
In response to BUG #1444: ::int2 parser bug  ("Ioseph Kim" <pgsql-kr@postgresql.or.kr>)
List pgsql-bugs
"Ioseph Kim" <pgsql-kr@postgresql.or.kr> writes:
> select -32768::int2;
> ERROR:  integer out of range

This is not a bug, because the interpretation is -(32768::int2)
which indeed is out of range.

            regards, tom lane

pgsql-bugs by date:

Previous
From: "Magnus Hagander"
Date:
Subject: Re: BUG #1445: Installation failed during "Activating Procedural Languages" - "Failed to connect to the database"
Next
From: Harald Armin Massa
Date:
Subject: Re: No connection to Server