Re: [Patch] Fix bounds check in trim_array()

Поиск
Список
Период
Сортировка
От Nathan Bossart
Тема Re: [Patch] Fix bounds check in trim_array()
Дата
Msg-id 20220728224618.GA412680@nathanxps13
обсуждение исходный текст
Ответ на [Patch] Fix bounds check in trim_array()  (Martin Kalcher <martin.kalcher@aboutsource.net>)
Ответы Re: [Patch] Fix bounds check in trim_array()
Список pgsql-hackers
On Mon, Jul 25, 2022 at 04:40:51PM +0200, Martin Kalcher wrote:
> +SELECT trim_array(ARRAY[]::int[], 1); -- fail
> +ERROR:  number of elements to trim must be between 0 and 0

Can we improve the error message?  Maybe it should look something like

    ERROR:  number of elements to trim must be 0

for this case.

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com



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

Предыдущее
От: Justin Pryzby
Дата:
Сообщение: Re: Mingw task for Cirrus CI
Следующее
От: Justin Kwan
Дата:
Сообщение: Re: Making pg_rewind faster