X-Original-To: pgsql-sql@postgresql.org Received: from opium.xs4all.nl (opium.xs4all.nl [194.109.0.61]) by postgresql.org (Postfix) with ESMTP id 795A947580B for ; Fri, 21 Mar 2003 08:36:43 -0500 (EST) Received: from opium.xs4all.nl (eric@localhost [127.0.0.1]) by opium.xs4all.nl (8.12.8/8.12.8/Debian-2) with ESMTP id h2LDakeQ014787 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 21 Mar 2003 14:36:46 +0100 Received: (from eric@localhost) by opium.xs4all.nl (8.12.8/8.12.8/Debian-2) id h2LDakva014786 for pgsql-sql@postgresql.org; Fri, 21 Mar 2003 14:36:46 +0100 Date: Fri, 21 Mar 2003 14:36:46 +0100 From: Eric Veldhuyzen To: pgsql-sql@postgresql.org Subject: cast of integer to bool doesn't work (anymore?) Message-ID: <20030321133646.GC6540@opium.xs4all.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nVMJ2NtxeReIH9PS" Content-Disposition: inline X-Virus: Hi! I am a header virus! Copy me into yours and join the fun! X-Files: The truth is out there X-Spam: Fight Spam! Join EuroCAUCE: http://www.euro.cauce.org/ X-Warning: May contain traces of nuts X-message-flag: *** MICROSOFT OUTLOOK FATAL ERROR 15: PRESS ALT+F4 TO CONTINUE User-Agent: Mutt/1.5.3i X-Archive-Number: 200303/496 X-Sequence-Number: 12535 --nVMJ2NtxeReIH9PS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, Here at my work we use on the production servers PostgreSQL version 7.2.3, but I have version 7.3.2 (from the Debian distribution) on my workstation. Now I noticed yesterday that the query 'select 0::boolean;' works on the production server, it gives the output: # select 0::boolean; bool=20 ------ f (1 row) Perfect. But when I try this on my local version of postgreSQL I get this: # select 0::boolean; ERROR: Cannot cast type integer to boolean Is there someone who can axplaint to me why this is happening, did I forget to do something to make this work, or is this some kind of new 'feature' of the 7.3 version? --=20 Eric Veldhuyzen xs4all NSA team --nVMJ2NtxeReIH9PS Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+exVuB/Bwnz56kZERAsZbAKC4lsSfNXL5nuHzNXuJA866Hhgf2QCgzjeI 5ElhgOpJWhtEihEs2jSBP3Q= =HYL5 -----END PGP SIGNATURE----- --nVMJ2NtxeReIH9PS--