Re: Returning NULL to a set returning C type function

Поиск
Список
Период
Сортировка
От Bborie Park
Тема Re: Returning NULL to a set returning C type function
Дата
Msg-id 4DCADEE1.6090901@ucdavis.edu
обсуждение исходный текст
Ответ на Re: Returning NULL to a set returning C type function  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
> Don't do that ;-).  You could choose either to not return any row
> at all when this happens, or to construct an all-nulls row to return.
> ExecMakeTableFunctionResult doesn't want to guess which behavior is
> appropriate for your use-case, so it just complains.
>
>             regards, tom lane
>

Thanks Tom.  I'll go the "no return any row" route.

--
Bborie Park
Programmer
Center for Vectorborne Diseases
UC Davis
530-752-8380
bkpark@ucdavis.edu

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

Предыдущее
От: "David Johnston"
Дата:
Сообщение: Re: Regexp match not working.. (SQL help)
Следующее
От: Cédric Villemain
Дата:
Сообщение: Re: track functions call