| От | Michael Fuhr |
|---|---|
| Тема | Re: plperl function to return nulls |
| Дата | |
| Msg-id | 20050919132749.GB83744@winnie.fuhr.org обсуждение |
| Ответ на | plperl function to return nulls (Brent Wood <b.wood@niwa.co.nz>) |
| Список | pgsql-general |
On Mon, Sep 19, 2005 at 10:52:23AM +1200, Brent Wood wrote: > I have a plperl function returning an int. The int is returned as the > result of a system call. > > It is set to return a null if one of the inputs is null, but I can't see > how to return a null if the result is indeterminate. The function > currently returns a 0 instead. > > How do I stick an if in the function to return a null where appropriate? From the PL/Perl documentation: "As shown above, to return an SQL null value from a PL/Perl function, return an undefined value." http://www.postgresql.org/docs/8.0/interactive/plperl.html Is that what you're looking for? -- Michael Fuhr
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера