]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix cursor_to_xml in tableforest false mode
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 4 May 2017 01:25:01 +0000 (21:25 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 5 May 2017 01:17:46 +0000 (21:17 -0400)
commit071d13395cc2ea0b87aa5f135c87808d6dd60cd5
tree0b2cd46593fbe22bfb5e5d657ee6a45af4e9251e
parent855f0e9247a160bfad00c117ba7d97148cd2a0ec
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>
src/backend/utils/adt/xml.c
src/test/regress/expected/xmlmap.out
src/test/regress/expected/xmlmap_1.out
src/test/regress/sql/xmlmap.sql