Re: array_length(anyarray) - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: array_length(anyarray)
Date
Msg-id 52B20FDF.2010106@dunslane.net
Whole thread Raw
In response to array_length(anyarray)  (Marko Tiikkaja <marko@joh.to>)
Responses Re: array_length(anyarray)
List pgsql-hackers
On 12/18/2013 03:27 PM, Marko Tiikkaja wrote:
> Hi,
>
> Attached is a patch to add support for array_length(anyarray), which 
> only works for one-dimensional arrays, returns 0 for empty arrays and 
> complains if the array's lower bound isn't 1.  In other words, does 
> the right thing when used with the arrays people use 99% of the time.

Why the heck would it complain if the lower bound isn't 1?

cheers

andrew



pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: [PATCH] SQL assertions prototype
Next
From: Andrew Dunstan
Date:
Subject: Re: [PATCH] SQL assertions prototype