Re: pgsql: Fix for plpython functions; return true/false for boolean,

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: pgsql: Fix for plpython functions; return true/false for boolean,
Дата
Msg-id 200701311257.l0VCvbv02414@momjian.us
обсуждение исходный текст
Ответ на Re: pgsql: Fix for plpython functions; return true/false for boolean,  (Hannu Krosing <hannu@skype.net>)
Ответы Re: pgsql: Fix for plpython functions; return true/false for boolean,  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: pgsql: Fix for plpython functions; return true/false for boolean,  (Tino Wildenhain <tino@wildenhain.de>)
Список pgsql-hackers
Hannu Krosing wrote:
> Officially by who ?
>
> 2.3 was the first version to introduce bool as a subtype of int, in
> 2.2.3 True and False were introduced as two variables pointing to
> integers 1 and 0.
>
> So to make your patch ok on all python versions, just make it
> conditional on python version being 2.3 or bigger, and return int for
> pre-2.3.

I thought about suggesting that, but do we want plpython to have
different result behavior based on the version of python used?  I didn't
think so.

--
  Bruce Momjian   bruce@momjian.us
  EnterpriseDB    http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Pavan Deolasee"
Дата:
Сообщение: Re: stack usage in toast_insert_or_update()
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: pgsql: Fix for plpython functions; return true/false for boolean,