Re: BUG #13810: cursor_to_xml ignores tableforest parameter

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: BUG #13810: cursor_to_xml ignores tableforest parameter
Дата
Msg-id fd3cc50b-5f07-c1ad-11df-11f12f43eb6c@2ndquadrant.com
обсуждение исходный текст
Ответ на BUG #13810: cursor_to_xml ignores tableforest parameter  (filip@jirsak.org)
Ответы Re: BUG #13810: cursor_to_xml ignores tableforest parameter
Список pgsql-bugs
On 12/9/15 9:07 AM, filip@jirsak.org wrote:
> CREATE FUNCTION test_cursor_to_xml() RETURNS xml AS $$
> DECLARE
>     curs CURSOR FOR SELECT generate_series(1, 5);
> BEGIN
>   OPEN curs;
>   RETURN cursor_to_xml(curs, 10, TRUE, FALSE, '');
> END;
> $$ LANGUAGE plpgsql;
>
> SELECT test_cursor_to_xml();
>
>
> This returns XML forrest instead of XML document with single root.

You're right, this should have a <table>...</table> around it, like
query_to_xml() does.

--
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #14271: Please fix 13804 bug
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: BUG #14273: Tuple concurently updated error while creating function using async call from node js with postgresq