Re: Inconsistent behavior on Array & Is Null?

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Joe Conway <mail(at)joeconway(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Inconsistent behavior on Array & Is Null?
Date: 2004-04-02 04:09:08
Message-ID: 200404012009.08305.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Joe,

> Sure, and in both cases array_upper is undefined because there are no
> array dimensions to speak of. I guess you might argue that array_upper,
> array_lower, and array_dims should all produce an ERROR on null input
> instead of NULL. But that would have been an un-backward compatible
> change for array_dims at the time array_lower and array_upper were
> created. I don't really believe they should throw an ERROR on an empty
> array though.

OK, I understand the logic now. Thanks.

I guess this is another case where we're haunted by the ANSI committee's
failure to define both and "unknown" and a "not applicable" value instead of
the unitary NULL.

--
-Josh Berkus
Aglio Database Solutions
San Francisco

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2004-04-02 04:21:59 Re: Inconsistent behavior on Array & Is Null?
Previous Message Christopher Browne 2004-04-02 03:04:41 Re: PITR for replication?