Skip site navigation (1) Skip section navigation (2)

BUG #4294: XML support: name() xpath function not working

From: "Enrico Sirola" <enrico(dot)sirola(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #4294: XML support: name() xpath function not working
Date: 2008-07-10 08:52:57
Message-ID: 200807100852.m6A8qvYM072317@wwwmaster.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-bugs
The following bug has been logged online:

Bug reference:      4294
Logged by:          Enrico Sirola
Email address:      enrico(dot)sirola(at)gmail(dot)com
PostgreSQL version: 8.3
Operating system:   OSX, Linux (RHEL5)
Description:        XML support: name() xpath function not working
Details: 

it seems the name() xpath function doesn't work properly. Try, for example,
the following sql script:

create table test (test xml);
insert into test values ('<a
xmlns="http://myns.com/ns"><b>text1</b><c>text2</c></a>');
-- good
select xpath('/my:a/*[last()]', test, ARRAY[ARRAY['my',
'http://myns.com/ns']]) from test;
-- bad
select xpath('name(/my:a/*[last()])', test, ARRAY[ARRAY['my',
'http://myns.com/ns']]) from test;

It seems the libxml2 version and the OS used is not relevant. The problem
affects all pgsql versions >= 8.3.0

Best regards,
Enrico

Responses

pgsql-bugs by date

Next:From: Zdenek KotalaDate: 2008-07-10 12:26:43
Subject: Re: BUG #4292: directory pg_clog never cleaned
Previous:From: LampaDate: 2008-07-10 07:17:51
Subject: BUG #4292: directory pg_clog never cleaned

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group