Fix cursor_to_xml in tableforest false mode
authorPeter Eisentraut
Thu, 4 May 2017 01:25:01 +0000 (21:25 -0400)
committerPeter Eisentraut
Fri, 5 May 2017 01:31:12 +0000 (21:31 -0400)
commit6e86b448f2f700ab0a05afbeba80fbadfcd1d70a
tree31d9edac1a2bfdb968fde9af58129d729aa57d86
parent85b3bcbcd61cc1b5aac35e53edc67abd1bceee08
Fix cursor_to_xml in tableforest false mode

It only produced  elements but no wrapping  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: [email protected]
Based-on-patch-by: Thomas Munro
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