Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xm1an-00040f-2H for pgsql-bugs@arkaria.postgresql.org; Wed, 05 Nov 2014 14:29:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Xm1al-0002Dl-Q2 for pgsql-bugs@arkaria.postgresql.org; Wed, 05 Nov 2014 14:29:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xm1al-0002DR-3I for pgsql-bugs@postgresql.org; Wed, 05 Nov 2014 14:29:47 +0000 Received: from s3.travelaudience.com ([144.76.44.146]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Xm1ah-0001oO-MF for pgsql-bugs@postgresql.org; Wed, 05 Nov 2014 14:29:45 +0000 Received: from localhost (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id 75008D0044C for ; Wed, 5 Nov 2014 15:29:42 +0100 (CET) X-Virus-Scanned: by amavisd-new-2.7.1 (20120429) (Debian) at s3.travelaudience.com Received: from localhost ([127.0.0.1]) by localhost (s3.travelaudience.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id qXdM_Pj1fsxb; Wed, 5 Nov 2014 15:29:40 +0100 (CET) Received: from [192.168.10.85] (pd95c8270.dip0.t-ipconnect.de [217.92.130.112]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) (Authenticated sender: j.pittman@travelaudience.com) by s3.travelaudience.com (Postfix) with ESMTPSA id 7D623D0012C; Wed, 5 Nov 2014 15:29:40 +0100 (CET) Message-ID: <545A3454.80701@travelaudience.com> Date: Wed, 05 Nov 2014 15:29:40 +0100 From: James Pittman User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org CC: =?UTF-8?B?Tm9yYmVydCBCdWNobcO8bGxlcg==?= Subject: BUG REPORT: Unable to cast boolean::smallint Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0X44c5SxTGcjGVBR2FlkHR91k1xaJp37L" X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --0X44c5SxTGcjGVBR2FlkHR91k1xaJp37L Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable It does not seem possible to be able to cast a boolean to a smallint. Whilst the following is possible: SELECT true::int; int4 ------ 1 (1 row) The following is not (as of 9.4beta3) SELECT true::smallint; ERROR: cannot cast type boolean to smallint It would seem logically consistent that both cases would hold true Apologies if this is more of a 'feature request' than a bug. Kind regards, James --0X44c5SxTGcjGVBR2FlkHR91k1xaJp37L Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJUWjRUAAoJEAhp0xcigHkbPpMP+wcx5IdVc8GgrPqq0rkFn1i2 rnarL3ftBU+HbVlYJRmZGtb7qFtCQz2KAbZDR2qYN9a3e+yaw6YuAbCmoOQxe+7+ B3wMz0rGXkb0xICy5ut7B4+/ejTHsao7XhFo5dsn8dY7dkgjrxBaqI6q05lFQCyk pRs9rKL5gvVX+HTGuA7o+FzTbUuQ+gSv3MUX6WSsYhNSqUQ5RQ5hfkbJe9pg4d0p 8dkxcmq6Z7ZDpj3zp3NtUeqzCktmCidataRBn7m68D2PbJEHlWMb1Mwjj0tDl87F XsXH6+2cc1NUSrCmAAC+h7tabMimzDpaNAVLMmBUc+ZMII1IvxBScocg62d0TyeR 8BW1S+4oGsWQXJcD0c253mXhvFl664WDzO05GDXfaHZQNqy5QljySku/tbfWvSu+ f5gI8z8gKx0zhqEsyN3rpQBPRenOWe6OEh7x4A8KY/UndXIMPX1KYwaV2QD6b0tn ggRCur1FwGRbPAZVoA4iCGGnkqQPHq3yjpCs8KUkp6nT1yZyfop0eK2eiFSvwnkI BjIx8BKgOh1clDrNasQ8BDSK7CujgTOvWRKJEWXpmXhL0oII7ROPP+vVRDoasjOq LTqq1gmHgzEr42QQe0WSsHqG22a0/ZAoYJFF1iqnEiA3ebAx/LlwNa5dsTSisfWe hRPGAQ8fd9tRhmYdtC2D =BJZI -----END PGP SIGNATURE----- --0X44c5SxTGcjGVBR2FlkHR91k1xaJp37L--