BUG #16046: xpath returns CDATA tag along with the value in postgres 12

Поиск
Список
Период
Сортировка
От PG Bug reporting form
Тема BUG #16046: xpath returns CDATA tag along with the value in postgres 12
Дата
Msg-id 16046-a04d0611e7a0c03a@postgresql.org
обсуждение исходный текст
Ответы Re: BUG #16046: xpath returns CDATA tag along with the value in postgres 12  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
The following bug has been logged on the website:

Bug reference:      16046
Logged by:          Mohammad Mostafa Kamal
Email address:      mostafa_bit0108@hotmail.com
PostgreSQL version: 12.0
Operating system:   Windows 7
Description:

While using xpath to extract text from a CDATA section of xml, it returns
CDATA tag along with the value. 

Query: SELECT
unnest(xpath('//cname/aname/text()','<cname><aname><![CDATA[select
5]]></aname></cname>'::xml))

Output - pg11: select 5 

Output - pg12:  <![CDATA[select 5]]>


В списке pgsql-bugs по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: BUG #16039: PANIC when activating replication slots in Postgres12.0 64bit under Windows
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: BUG #16045: vacuum_db crash and illegal memory alloc afterpg_upgrade from PG11 to PG12