From: Eric Veldhuyzen <ericv@xs4all.net>
To: pgsql-sql@postgresql.org
Subject: cast of integer to bool doesn't work (anymore?)
Date: Fri, 21 Mar 2003 14:36:46 +0100
Message-ID: <20030321133646.GC6540@opium.xs4all.nl> (raw)
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
------
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?
--
Eric Veldhuyzen
xs4all NSA team
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: ericv@xs4all.net
Subject: Re: cast of integer to bool doesn't work (anymore?)
In-Reply-To: <20030321133646.GC6540@opium.xs4all.nl>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox