Re: "select ('{}'::text[])[1]" returns NULL -- is it correct? - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: "select ('{}'::text[])[1]" returns NULL -- is it correct?
Date
Msg-id 200704091827.16428.peter_e@gmx.net
Whole thread Raw
In response to "select ('{}'::text[])[1]" returns NULL -- is it correct?  ("Nikolay Samokhvalov" <samokhvalov@gmail.com>)
List pgsql-hackers
Nikolay Samokhvalov wrote:
>  2. what should I do with XPath function? There is strong analogy
> between its case and array's case in my mind... Should I leave NULLs,
> or empty arrays are better?

Empty array appears to be correct.  The fact that arrays don't appear to 
work as you might like is a different problem that should not affect 
the specification of the XPath functionality.

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


pgsql-hackers by date:

Previous
From: "Adrian Maier"
Date:
Subject: Re: What X86/X64 OS's do we need coverage for?
Next
From: Larry Rosenman
Date:
Subject: Re: What X86/X64 OS's do we need coverage for?