Re: BUG #16046: xpath returns CDATA tag along with the value in postgres 12
В списке pgsql-bugs по дате отправления:
| От | 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 inpostgres 12
|
| Список | pgsql-bugs |
PG Bug reporting form <noreply@postgresql.org> 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()','<cname><aname><![CDATA[select 5]]></aname></cname>'::xml))
>
> Output - pg11: select 5
>
> Output - pg12: <![CDATA[select 5]]>
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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера