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

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: BUG #16046: xpath returns CDATA tag along with the value in postgres 12
Дата
Msg-id
10621.1571953091@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
BUG #16046: xpath returns CDATA tag along with the value in postgres 12 PG Bug reporting form <noreply@postgresql.org>
Re: BUG #16046: xpath returns CDATA tag along with the value in postgres 12 Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #16046: xpath returns CDATA tag along with the value inpostgres 12 Chapman Flack <chap@anastigmatix.net>
Re: BUG #16046: xpath returns CDATA tag along with the value inpostgres 12 Chapman Flack <chap@anastigmatix.net>
Re: BUG #16046: xpath returns CDATA tag along with the value inpostgres 12 Markus Winand <markus.winand@winand.at>
Re: BUG #16046: xpath returns CDATA tag along with the value inpostgres 12 Chapman Flack <chap@anastigmatix.net>
Re: BUG #16046: xpath returns CDATA tag along with the value in postgres 12 Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #16046: xpath returns CDATA tag along with the value inpostgres 12 Pavel Stehule <pavel.stehule@gmail.com>
Re: BUG #16046: xpath returns CDATA tag along with the value inpostgres 12 Mohammad Mostafa Kamal <mostafa_bit0108@hotmail.com>
PG Bug reporting form  writes:
> 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()',''::xml))
>
> Output - pg11: select 5 
>
> Output - pg12: 

I haven't actually bisected to make sure, but I imagine this is a
consequence of commit 251cf2e27bec98274e8bb002608680bdc211319e.
What's not entirely clear to me is whether it's an intentional
effect, or a bug.  Authors, any comments?

			regards, tom lane


В списке pgsql-bugs по дате отправления
От: Andres Freund
Дата:
От: Chapman Flack
Дата:
FAQ