]> granicus.if.org Git - postgresql/commit
Accept TEXT and CDATA nodes in XMLTABLE's column_expression.
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 20 Jun 2018 16:58:12 +0000 (12:58 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 20 Jun 2018 16:58:12 +0000 (12:58 -0400)
commitb7f0be9a7e7ec1eb7b9780b169366495f24bf975
tree6bfea731d98d0182475d8b86193ee215930d1a44
parent3adcad45588bff17b1253f60cf51c440e87df997
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
src/backend/utils/adt/xml.c
src/test/regress/expected/xml.out
src/test/regress/expected/xml_2.out
src/test/regress/sql/xml.sql