Re: cast of integer to bool doesn't work (anymore?)

From: Eric Veldhuyzen <ericv(at)xs4all(dot)net>
To: Achilleus Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>
Cc: Eric Veldhuyzen <ericv(at)xs4all(dot)net>, pgsql-sql(at)postgresql(dot)org
Subject: Re: cast of integer to bool doesn't work (anymore?)
Date: 2003-03-21 15:01:38
Message-ID: 20030321150138.GE6540@opium.xs4all.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2003-03-21 15:07:47 Re: cast of integer to bool doesn't work (anymore?)
Previous Message Eric Veldhuyzen 2003-03-21 14:19:40 Re: cast of integer to bool doesn't work (anymore?)