From: Eric Veldhuyzen <ericv@xs4all.net>
To: Achilleus Mantzios <achill@matrix.gatewaynet.com>
Cc: Eric Veldhuyzen <ericv@xs4all.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: cast of integer to bool doesn't work (anymore?)
Date: Fri, 21 Mar 2003 16:01:38 +0100
Message-ID: <20030321150138.GE6540@opium.xs4all.nl> (raw)
In-Reply-To: <Pine.LNX.4.44.0303211644390.2751-100000@matrix.gatewaynet.com>
References: <20030321141940.GD6540@opium.xs4all.nl>
<Pine.LNX.4.44.0303211644390.2751-100000@matrix.gatewaynet.com>
On Fri, Mar 21, 2003 at 04:46:17PM -0200, Achilleus Mantzios wrote:
>
> Currently (7.3) all input can be handled if fed as text.
> So what you can do is simply:
>
> my $sth = $dbh->prepare(
> "INSERT INTO object_def (name, meant_as_subobject) VALUES (?,?)");
> $sth->execute('test', '0');
Ah, thanks, that seems to work, with only minor modifications to our
code. Is there any reason why integers are no longer convertable to
booleans?
--
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, achill@matrix.gatewaynet.com
Subject: Re: cast of integer to bool doesn't work (anymore?)
In-Reply-To: <20030321150138.GE6540@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