Re: empty array can crash backend using int_array_enum from contrib.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: empty array can crash backend using int_array_enum from contrib.
Дата
Msg-id 11932.1114279018@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: empty array can crash backend using int_array_enum from contrib.  (Andrew - Supernews <andrew+nonews@supernews.com>)
Список pgsql-bugs
Andrew - Supernews <andrew+nonews@supernews.com> writes:
> We were discussing this one on irc while it was presumably waiting in the
> moderation queue, and I suggested to the poster an alternative patch that
> allowed empty arrays to actually be treated as empty (your version will
> error out on int_array_enum('{}') rather than producing 0 rows, which seems
> unhelpful).

Done, but not back-patched since this seems more in the nature of a new
feature than a crash preventative.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: V2 protocol -> 8.1 server
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #1608: integer negative limit in plpgsql function arguments