plperl function to return nulls

Поиск
Список
Период
Сортировка
От Brent Wood
Тема plperl function to return nulls
Дата
Msg-id 20050919102610.L17472@storm-user.niwa.co.nz
обсуждение исходный текст
Ответ на Re: Query Cost  ("Jim C. Nasby" <jnasby@pervasive.com>)
Ответы Re: plperl function to return nulls  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-general

I can't find a reference in the docs for this...

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?


Thanks,

  Brent Wood

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

Предыдущее
От: Sean Davis
Дата:
Сообщение: Re: help me pls
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: How to modify a tuple returned by SPI_copytuple?