]> 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 01:20:26 +0000 (21:20 -0400)
commit9750a9583aacefbde15d9ed4ebfed84f1fb3aae8
treee3689fae722513fcdc0313112d473cd440f76efc
parent6cfb428b05a8742ac0ec17145c90c4672d44177d
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