Re: Returning NULL from SRF
От
Magnus Persson
Тема
Re: Returning NULL from SRF
Дата
Msg-id
52C98839.3000709@gmail.com
Ответ на
Returning NULL from SRF (Magnus Persson)
Список
Дерево обсуждения
Returning NULL from SRF Magnus Persson <magnus.e.persson@gmail.com>
Re: Returning NULL from SRF Magnus Persson <magnus.e.persson@gmail.com>
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 по дате отправления
От: avpro avpro
Дата: