From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Fix cursor_to_xml in tableforest false mode
Date: Fri, 05 May 2017 02:45:07 +0000
Message-ID: <E1d6TEx-0000KA-0U@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Fix cursor_to_xml in tableforest false mode
It only produced <row> elements but no wrapping <table> element.
By contrast, cursor_to_xmlschema produced a schema that is now correct
but did not previously match the XML data produced by cursor_to_xml.
In passing, also fix a minor misunderstanding about moving cursors in
the tests related to this.
Reported-by: filip@jirsak.org
Based-on-patch-by: Thomas Munro <thomas.munro@enterprisedb.com>
Branch
------
REL9_5_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/9750a9583aacefbde15d9ed4ebfed84f1fb3aae8
Modified Files
--------------
src/backend/utils/adt/xml.c | 13 +++++++
src/test/regress/expected/xmlmap.out | 64 +++++++++++++++++++++++++++-------
src/test/regress/expected/xmlmap_1.out | 6 +++-
src/test/regress/sql/xmlmap.sql | 3 +-
4 files changed, 71 insertions(+), 15 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: peter_e@gmx.net
Subject: Re: pgsql: Fix cursor_to_xml in tableforest false mode
In-Reply-To: <E1d6TEx-0000KA-0U@gemulon.postgresql.org>
References: <E1d6TEx-0000KA-0U@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox