From: Adrian Klaver <adrian.klaver@gmail.com>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5783: plpythonu bool behavior change
Date: Sun, 5 Dec 2010 11:15:34 -0800
Message-ID: <201012051115.34553.adrian.klaver@gmail.com> (raw)
In-Reply-To: <1291569006.10677.0.camel@vanquo.pezone.net>
References: <201012050025.oB50PRwx076625@wwwmaster.postgresql.org>
<1291569006.10677.0.camel@vanquo.pezone.net>
On Sunday 05 December 2010 9:10:06 am Peter Eisentraut wrote:
> On sön, 2010-12-05 at 00:25 +0000, Adrian Klaver wrote:
> > Seems there was a change in behavior for plpythonu with regards to
> > boolean fields from 8.4 to 9.0. Previously, setting a field inside a
> > plpythonu function to "f" would work, now that returns a 't' in the
> > database field. To get the 'f' to appear I have to specify False
> > inside the function.
>
> That change was intentional.
Alright my mistake, I finally went past the release notes and read the new docs
for plpythonu. I see the changes. I do not agree with them, but I should have
paid more attention in the dev process. The value is being returned to the
database and should play by the database rules or at least be flagged. I will
make the necessary changes on my end.
Thanks,
--
Adrian Klaver
adrian.klaver@gmail.com
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: adrian.klaver@gmail.com, peter_e@gmx.net
Subject: Re: BUG #5783: plpythonu bool behavior change
In-Reply-To: <201012051115.34553.adrian.klaver@gmail.com>
References: <201012050025.oB50PRwx076625@wwwmaster.postgresql.org> <1291569006.10677.0.camel@vanquo.pezone.net> <201012051115.34553.adrian.klaver@gmail.com>
* 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