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 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Zdenek Kotala | 2008-07-10 12:26:43 | Re: BUG #4292: directory pg_clog never cleaned |
Previous Message | Lampa | 2008-07-10 07:17:51 | BUG #4292: directory pg_clog never cleaned |