Returning NULL from SRF

Поиск
Список
Период
Сортировка
От Magnus Persson
Тема Returning NULL from SRF
Дата
Msg-id 52C96EDB.1020201@gmail.com
обсуждение исходный текст
Ответы Re: Returning NULL from SRF  (Magnus Persson <magnus.e.persson@gmail.com>)
Список pgsql-novice
My function is defined as:
   CREATE OR REPLACE FUNCTION ta_f(
     IN ta_in double precision[],
     OUT ta_out double precision)
   RETURNS SETOF double precision
   AS 'pg_ta'
   LANGUAGE C STRICT;

And for those cases where I have an actual number to return I do:
   SRF_RETURN_NEXT(funcctx, ((Datum *) funcctx->user_fctx)[call_cntr]);

In those cases where I don't have a value to return, how do I express
that? As in, if I have the array [ NULL, 1.5, 2.5, NULL ]?



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

Предыдущее
От: Sameer Kumar
Дата:
Сообщение: Re: total time more than 24 hours
Следующее
От: Sameer Kumar
Дата:
Сообщение: Re: total time more than 24 hours