Re: BUG #1444: ::int2 parser bug

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Ioseph Kim" <pgsql-kr(at)postgresql(dot)or(dot)kr>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1444: ::int2 parser bug
Date: 2005-01-29 21:05:38
Message-ID: 10188.1107032738@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Ioseph Kim" <pgsql-kr(at)postgresql(dot)or(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Harald Armin Massa 2005-01-29 21:34:27 Re: No connection to Server
Previous Message Magnus Hagander 2005-01-29 21:01:08 Re: BUG #1445: Installation failed during "Activating Procedural Languages" - "Failed to connect to the database"