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

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

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 notworking
Date: 2008-07-10 16:57:36
Message-ID: 1215709056.4051.1381.camel@ebony.2ndQuadrant (view raw or flat)
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

pgsql-bugs by date

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

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