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

From Peter Eisentraut
Subject Re: xpath_array with namespaces support
Date
Msg-id 200704041504.15435.peter_e@gmx.net
Whole thread Raw
In response to xpath_array with namespaces support  ("Nikolay Samokhvalov" <samokhvalov@gmail.com>)
List 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/

pgsql-patches by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: xpath_array with namespaces support
Next
From: Andrew Dunstan
Date:
Subject: Re: IDENTITY/GENERATED v36 Re: Final version of IDENTITY/GENERATED patch