public inbox for [email protected]
help / color / mirror / Atom feedFrom: Thom Brown <[email protected]>
To: Magnus Hagander <[email protected]>
Cc: Satoshi Nagayasu <[email protected]>
Cc: pgsql-docs <[email protected]>
Subject: Re: INTEGER range ("-2147483648" is not accepted.)
Date: Tue, 22 Jun 2010 09:48:49 +0100
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<[email protected]>
On 22 June 2010 09:44, Magnus Hagander <[email protected]> wrote:
> On Tue, Jun 22, 2010 at 10:27 AM, Satoshi Nagayasu
> <[email protected]> wrote:
>> Hi all,
>>
>> I've found a bit strange thing on the INTEGER range in the official manual.
>>
>> http://www.postgresql.org/docs/8.4/interactive/datatype-numeric.html
>>
>> According to the official manual, the INTEGER range is "-2147483648 to +2147483647".
>> However, my example in below shows that "-2147483648" is not accepted.
>>
>> Is this correct? Any suggestions?
>>
>> template1=# SELECT -2147483648::integer;
>> ERROR: integer out of range
>
> This gets parsed as "cast 2147483648 to integer
Why? And if so, it would probably be more useful if the error message
was something more like:
ERROR: integer 2147483648 out of range
That would at least show the user what the value was seen as by the parser.
Thom
view thread (14+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: INTEGER range ("-2147483648" is not accepted.)
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox