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

From: Simon Riggs <simon(at)2ndquadrant(dot)com>
To: Enrico Sirola <enrico(dot)sirola(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4294: XML support: name() xpath function not working
Date: 2008-07-10 16:57:36
Message-ID: 1215709056.4051.1381.camel@ebony.2ndQuadrant
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


On Thu, 2008-07-10 at 08:52 +0000, Enrico Sirola wrote:

> 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;

What error messages are you getting?

Why do you think this should work? Best post a test case using another
tool, or a URL to an example.

--
Simon Riggs www.2ndQuadrant.com
PostgreSQL Training, Services and Support

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2008-07-11 04:28:14 Re: BUG #4294: XML support: name() xpath function not working
Previous Message Tom Lane 2008-07-10 14:34:19 Re: BUG #4291: Inheritance fails on column suppression