]> 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)
commite10bc161f9a675e21e7421b59c57d2b4c8eec13b
treeb870d7284b59addf017a2d3ef17d8e481c099a6f
parent99ba8d2f8f84fdc2721000dc5727a41e2ca8d944
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