Re: [PgFoundry] Unsigned Data Types [1 of 2] - Mailing list pgsql-patches

From Jaime Casanova
Subject Re: [PgFoundry] Unsigned Data Types [1 of 2]
Date
Msg-id 3073cc9b0809062246p2add97baka9252d6c32aa1d5b@mail.gmail.com
Whole thread Raw
In response to Re: [PgFoundry] Unsigned Data Types [1 of 2]  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [PgFoundry] Unsigned Data Types [1 of 2]
List pgsql-patches
On Sat, Sep 6, 2008 at 7:10 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> Now, if (-255)::uint1 fails to throw error, that would be a bug IMHO.
> Casting any negative value to uint ought to fail, no?
>

then the patch is right but it seems to me like that is broking the
law of less surprise i expected -2::uint1 to be equivalent to
(-2)::uint1 that should be at least documented, no?

--
regards,
Jaime Casanova
Soporte y capacitación de PostgreSQL
Asesoría y desarrollo de sistemas
Guayaquil - Ecuador
Cel. (593) 87171157

pgsql-patches by date:

Previous
From: "Alex Hunsaker"
Date:
Subject: Re: hash index improving v3
Next
From: Tom Lane
Date:
Subject: Re: [PgFoundry] Unsigned Data Types [1 of 2]