Re: BUG #7844: xpath missing entity decoding - bug or feature - Mailing list pgsql-bugs

From Bruce Momjian
Subject Re: BUG #7844: xpath missing entity decoding - bug or feature
Date
Msg-id 20130910230414.GG16378@momjian.us
Whole thread Raw
In response to BUG #7844: xpath missing entity decoding - bug or feature  (info@fduerr.de)
List pgsql-bugs
On Fri, Feb  1, 2013 at 12:02:41PM +0000, info@fduerr.de wrote:
> The following bug has been logged on the website:
>
> Bug reference:      7844
> Logged by:          fduerr
> Email address:      info@fduerr.de
> PostgreSQL version: 9.2.2
> Operating system:   Debian
> Description:
>
> Up until 9.1
>
> select (xpath('/z/text()', ('<z>' || 'AT&T' || '</z>')::xml))[1];
>
> returned 'AT&T'
> 9.2 returns 'AT&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@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

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

pgsql-bugs by date:

Previous
From: Joe Abbate
Date:
Subject: Spaces before newlines in view definitions in 9.3
Next
From: Bruce Momjian
Date:
Subject: Re: BUG #7817: psql does not relate to footer settings in extended mode