]> granicus.if.org Git - postgresql/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 02:39:23 +0000 (22:39 -0400)
commita48d47908337ce3a17da37e413f1e2ea658552f9
treea242b057e74810e7ff25f14e79bb091cf330f72e
parent1b6db75ef2d1fe96a9cbd643befa2aa7a9b8d933
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