Re: Returning NULL from SRF

Поиск
Список
Период
Сортировка
От Magnus Persson
Тема Re: Returning NULL from SRF
Дата
Msg-id 52C98839.3000709@gmail.com
обсуждение исходный текст
Ответ на Returning NULL from SRF  (Magnus Persson <magnus.e.persson@gmail.com>)
Список pgsql-novice
RhodiumToad set me on the right track.

Apparently there is no macro defined for returning null in a SRF. The
suggestion was to copy the SRF_RETURN_NEXT macro, defining it to call
PG_RETURN_NULL() instead of PG_RETURN_DATUM(_result). Worked like a charm!


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

Предыдущее
От: Sameer Kumar
Дата:
Сообщение: Re: total time more than 24 hours
Следующее
От: avpro avpro
Дата:
Сообщение: how to add 'time with time zone' data types and 'interval' data types