pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Accept TEXT and CDATA nodes in XMLTABLE's column_expression.
Date: Wed, 20 Jun 2018 16:58:42 +0000
Message-ID: <E1fVgRO-0005Gw-DX@gemulon.postgresql.org> (raw)

Accept TEXT and CDATA nodes in XMLTABLE's column_expression.

Column expressions that match TEXT or CDATA nodes must return the
contents of the nodes themselves, not the content of non-existing
children (i.e. the empty string).

Author: Markus Winand
Reported-by: Markus Winand
Reviewed-by: Álvaro Herrera
Discussion: https://postgr.es/m/0684A598-002C-42A2-AE12-F024A324EAE4@winand.at

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/e10bc161f9a675e21e7421b59c57d2b4c8eec13b

Modified Files
--------------
src/backend/utils/adt/xml.c         | 24 ++++++++++++++----------
src/test/regress/expected/xml.out   | 12 ++++++------
src/test/regress/expected/xml_2.out | 12 ++++++------
src/test/regress/sql/xml.sql        |  4 ++--
4 files changed, 28 insertions(+), 24 deletions(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1fVgRO-0005Gw-DX@gemulon.postgresql.org>
Permalink:  ../E1fVgRO-0005Gw-DX@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1fVgRO-0005Gw-DX@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Accept TEXT and CDATA nodes in XMLTABLE's column_expression.
  In-Reply-To: <E1fVgRO-0005Gw-DX@gemulon.postgresql.org>
  References: <E1fVgRO-0005Gw-DX@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox