public inbox for [email protected]
help / color / mirror / Atom feedFrom: Erik Wienhold <[email protected]>
To: Marcos Pegoraro <[email protected]>
Cc: Postgres General <[email protected]>
Subject: Re: Length returns NULL ?
Date: Wed, 5 Jun 2024 21:07:52 +0200
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAB-JLwZmKYDT=0WSkvKHLqaejxWoMjBok3YjUtAtM1U8=N__0g@mail.gmail.com>
References: <CAB-JLwZmKYDT=0WSkvKHLqaejxWoMjBok3YjUtAtM1U8=N__0g@mail.gmail.com>
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
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Length returns NULL ?
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox