Re: xpath_array with namespaces support

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: "Nikolay Samokhvalov" <nikolay(at)samokhvalov(dot)com>
Cc: pgsql-patches(at)postgresql(dot)org, "Bruce Momjian" <bruce(at)momjian(dot)us>
Subject: Re: xpath_array with namespaces support
Date: 2007-04-04 13:04:15
Message-ID: 200704041504.15435.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Am Mittwoch, 4. April 2007 14:42 schrieb Nikolay Samokhvalov:
> > Why is the function not strict?
>
> Because in case of 3rd argument (NS mappings) being NULL, we shouldn't
> return NULL immediately:

If the namespace mapping is NULL then it is unknown, and therefore the result
of the XPath expression cannot be evaluated with certainty. If no namespace
mapping is to be passed, then you should pass a list(/array/...) of length
zero.

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2007-04-04 13:05:15 Re: IDENTITY/GENERATED v36 Re: Final version of IDENTITY/GENERATED patch
Previous Message Peter Eisentraut 2007-04-04 13:02:36 Re: xpath_array with namespaces support

Browse pgsql-patches by date

  From Date Subject
Next Message Andrew Dunstan 2007-04-04 13:05:15 Re: IDENTITY/GENERATED v36 Re: Final version of IDENTITY/GENERATED patch
Previous Message Peter Eisentraut 2007-04-04 13:02:36 Re: xpath_array with namespaces support