Search Postgresql Archives

Re: Length returns NULL ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2024-06-05 19:50 +0200, Marcos Pegoraro wrote:
> There are some functions called ...length, but only array_length returns
> NULL on empty array, why ?

Because the empty array has zero dimensions[1].  But now I'm wondering
why array_ndims returns NULL instead of zero for empty arrays.

[1] https://www.postgresql.org/message-id/603c8f070811061951u16034c3fk5dfaa493a6739a24%40mail.gmail.com

-- 
Erik





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux