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

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: BUG #4294: XML support: name() xpath function not working
Дата
Msg-id 1215709056.4051.1381.camel@ebony.2ndQuadrant
обсуждение исходный текст
Ответ на BUG #4294: XML support: name() xpath function not working  ("Enrico Sirola" <enrico.sirola@gmail.com>)
Список 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

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #4291: Inheritance fails on column suppression
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #4294: XML support: name() xpath function not working