Re: array_length()

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: array_length()
Дата
Msg-id 603c8f070811061956m1f17eef2p9ecfc7d0d1011ad2@mail.gmail.com
обсуждение исходный текст
Ответ на Re: array_length()  ("Robert Haas" <robertmhaas@gmail.com>)
Список pgsql-hackers
> Hmm... the problem is that an empty array is really zero-dimensional.
> So for what values of the second argument ought we to return 0?
>
> It certainly seems inconsistent to say that array_length({}, 6) = 0
> and array_length({1}, 6) is null.

Ugh.  I meant rather:

It certainly seems inconsistent to say that array_length({}, 6) = 0
and array_upper({1}, 6) is null.

...Robert


В списке pgsql-hackers по дате отправления: