Re: array_length(anyarray)
От | Pavel Stehule |
---|---|
Тема | Re: array_length(anyarray) |
Дата | |
Msg-id | CAFj8pRCsp=puLsWinM=+6SbqpRwydkgeSrOSU=Gi2MeGt+mxiQ@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: array_length(anyarray) (David Fetter <david@fetter.org>) |
Ответы |
Re: array_length(anyarray)
|
Список | pgsql-hackers |
2013/12/19 David Fetter <david@fetter.org>
+1
On Wed, Dec 18, 2013 at 09:27:54PM +0100, Marko Tiikkaja wrote:+1 for adding this.
> 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.
+1
length should be irrelevant to fact so array starts from 1, 0 or anything else
Regards
Pavel
Cheers,
David.
--
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david.fetter@gmail.com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics
Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
В списке pgsql-hackers по дате отправления: