Re: xpath_array with namespaces support - Mailing list pgsql-patches

From Peter Eisentraut
Subject Re: xpath_array with namespaces support
Date
Msg-id 200703222158.36891.peter_e@gmx.net
Whole thread Raw
In response to xpath_array with namespaces support  ("Nikolay Samokhvalov" <samokhvalov@gmail.com>)
List pgsql-patches
Nikolay Samokhvalov wrote:
> Also, maybe someone can suggest better approach for passing namespace
> bindings (more convenient than ARRAY[ARRAY[...], ARRAY[...]])?

Your code assumes

ARRAY[ARRAY['myns', 'myns2'], ARRAY['http://example.com', 'http://example2.com']]

Shouldn't it be

ARRAY[ARRAY['myns', 'http://example.com'], ARRAY['myns2', 'http://example2.com']]

?

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: guc patch: Make variables fall back to default values
Next
From: Peter Eisentraut
Date:
Subject: Re: [HACKERS] xml2 contrib patch supporting default XML namespaces