Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id BD22764FD10 for ; Sat, 6 Sep 2008 20:10:29 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 54255-05 for ; Sat, 6 Sep 2008 20:10:27 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.239]) by postgresql.org (Postfix) with ESMTP id 1F34564FCBA for ; Sat, 6 Sep 2008 20:10:26 -0300 (ADT) Received: by rv-out-0506.google.com with SMTP id b25so1320098rvf.43 for ; Sat, 06 Sep 2008 16:10:25 -0700 (PDT) Received: by 10.140.147.5 with SMTP id u5mr7742715rvd.166.1220742625205; Sat, 06 Sep 2008 16:10:25 -0700 (PDT) Received: by 10.141.51.11 with HTTP; Sat, 6 Sep 2008 16:10:25 -0700 (PDT) Message-ID: <3073cc9b0809061610s149ef06ah5bb601b081b29db6@mail.gmail.com> Date: Sat, 6 Sep 2008 18:10:25 -0500 From: "Jaime Casanova" To: "Tom Lane" Subject: Re: [PgFoundry] Unsigned Data Types [1 of 2] Cc: "Ryan Bradetich" , pgsql-patches In-Reply-To: <25089.1220734677@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <3073cc9b0809061341q5c747488i85491e4c8e2420ba@mail.gmail.com> <25089.1220734677@sss.pgh.pa.us> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/75 X-Sequence-Number: 7090 On Sat, Sep 6, 2008 at 3:57 PM, Tom Lane wrote: > "Jaime Casanova" 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=3D# select -256::uint1; >> ERROR: uint1 out of range > > No, that's just because this is parsed as -(256::uint1) > actually, i thought that case is right but the -255::uint1 returning a negative number (aka -255) is what bothers me --=20 regards, Jaime Casanova Soporte y capacitaci=F3n de PostgreSQL Asesor=EDa y desarrollo de sistemas Guayaquil - Ecuador Cel. (593) 87171157