cursor_to_xml: How to signal end?

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема cursor_to_xml: How to signal end?
Дата
Msg-id 1274904959.19408.17.camel@vanquo.pezone.net
обсуждение исходный текст
Список pgsql-hackers
Currently, cursor_to_xml returns an empty string when the end of the
cursor is reached (meaning the fetch returned zero rows).  As discussed
on -general, that's kind of weird, because you'd have to do something
like

IF val::text = ''

to test for the end, since there is no = operator for xml, and also
because '' isn't a valid XML value at all.

What would be a good way to address this?  Return null perhaps?



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

Предыдущее
От: Dimitri Fontaine
Дата:
Сообщение: Re: Exposing the Xact commit order to the user
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Exposing the Xact commit order to the user