Re: Assigning null to an array element in plpgsql

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Assigning null to an array element in plpgsql
Дата
Msg-id 5859.1132154253@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Assigning null to an array element in plpgsql  (Eugene Chow <gene@paragonam.com>)
Список pgsql-bugs
Eugene Chow <gene@paragonam.com> writes:
> I believe this is a bug. The following function returns 'foo' instead
> of null:

NULLs in arrays aren't supported; the system interprets an attempt to
store a NULL into an array element as a no-op.  Perhaps it should have
raised an error instead, but it's been that way for a long time and
we're not likely to change the behavior of existing releases.

(I'm actually right in the middle of adding support for null array
elements, but it won't appear until 8.2.)

            regards, tom lane

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

Предыдущее
От: Sarunas Krisciukaitis
Дата:
Сообщение: Re: Double sequence increase on single insert with RULE on
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: Double sequence increase on single insert with RULE on targeted table