public inbox for [email protected]
help / color / mirror / Atom feedFrom: Thom Brown <[email protected]>
To: Tom Lane <[email protected]>
Cc: David Fetter <[email protected]>
Cc: Satoshi Nagayasu <[email protected]>
Cc: [email protected]
Subject: Re: INTEGER range ("-2147483648" is not accepted.)
Date: Wed, 23 Jun 2010 09:17:58 +0100
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
On 23 June 2010 02:49, Tom Lane <[email protected]> wrote:
> Thom Brown <[email protected]> writes:
>> Is that the right behaviour though? Shouldn't the signed value reach
>> the cast step rather than the absolute value? Or maybe Postgres could
>> implicitly accept -12345::integer to be (-12345)::integer. Is there a
>> blocking reason as to why it must work this way?
>
> Yes. There is no reason to assume that - means the same thing for every
> datatype. In general, :: should (and does) bind tighter than *every*
> operator, to ensure that the appropriately typed operator is applied.
>
Okay. I'll admit that this won't be a common case, but could the
error message make reference to the value it took?
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], [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