| From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql: Fix cursor_to_xml in tableforest false mode |
| Date: | 2017-05-04 01:53:13 |
| Message-ID: | E1d65xB-00065n-Ax@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-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(at)jirsak(dot)org
Based-on-patch-by: Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/0de791ed760614991e7cb8a78fddd6874ea6919d
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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Heikki Linnakangas | 2017-05-04 09:29:17 | pgsql: Fix PQencryptPasswordConn to work with older server versions. |
| Previous Message | Tom Lane | 2017-05-03 23:37:24 | pgsql: Remove useless and rather expensive stanza in matview regression |