Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 3F55864FCF6 for ; Sun, 7 Sep 2008 02:46:45 -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 55040-07 for ; Sun, 7 Sep 2008 02:46:42 -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.230]) by postgresql.org (Postfix) with ESMTP id 112B864FCCC for ; Sun, 7 Sep 2008 02:46:41 -0300 (ADT) Received: by rv-out-0506.google.com with SMTP id b25so1421159rvf.43 for ; Sat, 06 Sep 2008 22:46:40 -0700 (PDT) Received: by 10.141.180.11 with SMTP id h11mr7912141rvp.158.1220766400769; Sat, 06 Sep 2008 22:46:40 -0700 (PDT) Received: by 10.141.51.11 with HTTP; Sat, 6 Sep 2008 22:46:40 -0700 (PDT) Message-ID: <3073cc9b0809062246p2add97baka9252d6c32aa1d5b@mail.gmail.com> Date: Sun, 7 Sep 2008 00:46:40 -0500 From: "Jaime Casanova" To: "Tom Lane" Subject: Re: [PgFoundry] Unsigned Data Types [1 of 2] Cc: "Ryan Bradetich" , pgsql-patches In-Reply-To: <27485.1220746204@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> <3073cc9b0809061610s149ef06ah5bb601b081b29db6@mail.gmail.com> <27485.1220746204@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/81 X-Sequence-Number: 7096 On Sat, Sep 6, 2008 at 7:10 PM, Tom Lane 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? --=20 regards, Jaime Casanova Soporte y capacitaci=F3n de PostgreSQL Asesor=EDa y desarrollo de sistemas Guayaquil - Ecuador Cel. (593) 87171157