Re: [HACKERS] pgsql: Fix for plpython functions; return true/false for boolean,
В списке pgsql-patches по дате отправления:
| От | Alvaro Herrera |
|---|---|
| Тема | Re: [HACKERS] pgsql: Fix for plpython functions; return true/false for boolean, |
| Дата | |
| Msg-id | 20070131133424.GB22158@alvh.no-ip.org обсуждение исходный текст |
| Ответ на | Re: [HACKERS] pgsql: Fix for plpython functions; return true/false for boolean, (Bruce Momjian <bruce@momjian.us>) |
| Список | pgsql-patches |
Bruce Momjian wrote: > 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. The alternative would be, what, including the whole python source in our distribution? Because the Python guys themselves changed the behavior depending on the version. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера