Re: BUG #14986: -2147483648 is minimum value of integer but -2147483648::integer fails (out of range).

From: Andres Freund <andres(at)anarazel(dot)de>
To: Greg Stark <stark(at)mit(dot)edu>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, binoternary(at)gmail(dot)com, pgsql-bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #14986: -2147483648 is minimum value of integer but -2147483648::integer fails (out of range).
Date: 2017-12-21 14:13:15
Message-ID: 20171221141315.nj5uvgnqwd6hzjtp@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi,

On 2017-12-21 14:05:07 +0000, Greg Stark wrote:
> I wonder why the "out of range" error doesn't print the actual value
> it's trying to cast. That would help the user here...

We'd have to mark it as non-leakproof in that case.

Greetings,

Andres Freund

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Alvaro Herrera 2017-12-21 14:27:09 Re: BUG #14986: -2147483648 is minimum value of integer but -2147483648::integer fails (out of range).
Previous Message Greg Stark 2017-12-21 14:05:07 Re: BUG #14986: -2147483648 is minimum value of integer but -2147483648::integer fails (out of range).