Re: [PgFoundry] Unsigned Data Types [1 of 2]

"Jaime Casanova" <[email protected]> Sat, 6 Sep 2008 18:22:10 -0500
Newsgroups gmane.comp.db.postgresql.devel.patches
Message-ID <[email protected]>
On Sat, Sep 6, 2008 at 3:57 PM, Tom Lane <[email protected]> wrote:
> "Jaime Casanova" <[email protected]> writes:
>> seems there is something wrong in the unlikely macro (i'm using GCC
>> 4.2.3 in Ubuntu 4.2.3-2ubuntu7 with amd64)
>
>> postgres=# select -256::uint1;
>> ERROR:  uint1 out of range
>
> No, that's just because this is parsed as -(256::uint1)
>

ah! ok, i see the point...

postgres=# select 256::uint1;
ERROR:  uint1 out of range

but is right that way of parsing? so i get a negative number instead
of an error?

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

-- 
Sent via pgsql-patches mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-patches