Re: BUG #7844: xpath missing entity decoding - bug or feature

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: info(at)fduerr(dot)de
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #7844: xpath missing entity decoding - bug or feature
Date: 2013-09-10 23:04:14
Message-ID: 20130910230414.GG16378@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Fri, Feb 1, 2013 at 12:02:41PM +0000, info(at)fduerr(dot)de wrote:
> The following bug has been logged on the website:
>
> Bug reference: 7844
> Logged by: fduerr
> Email address: info(at)fduerr(dot)de
> PostgreSQL version: 9.2.2
> Operating system: Debian
> Description:
>
> Up until 9.1
>
> select (xpath('/z/text()', ('<z>' || 'AT&amp;T' || '</z>')::xml))[1];
>
> returned 'AT&T'
> 9.2 returns 'AT&amp;T'
>
> Is it a bug or a feature?
> Is there a function to decode xml-entities?

Does anyone have a comment on this?

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2013-09-10 23:07:15 Re: BUG #7817: psql does not relate to footer settings in extended mode
Previous Message Joe Abbate 2013-09-10 21:21:58 Spaces before newlines in view definitions in 9.3