NULL in arrays

Поиск
Список
Период
Сортировка
От Dennis Bjorklund
Тема NULL in arrays
Дата
Msg-id Pine.LNX.4.44.0401151355180.17187-100000@zigo.dhs.org
обсуждение исходный текст
Ответы Re: NULL in arrays
Re: NULL in arrays
Список pgsql-bugs
A person (cross) in the irc channel have found a bug with the new arrays.
Here is what I did to reproduce:

dennis=# CREATE TABLE foo (a int[]);
CREATE TABLE
dennis=# INSERT INTO foo VALUES (ARRAY[2,NULL]);
INSERT 25353 1

That last insert contains a NULL value which are not allowed in arrays and
yet a insert is performed. The table contains a NULL value afterwards
(and no array).

This is something that should be fixed for 7.4.2, so that it gives an
error instead of inserting bad data.

--
/Dennis Björklund

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

Предыдущее
От: Achilleus Mantzios
Дата:
Сообщение: Re: ResultSet.getFetchSize()
Следующее
От: Dennis Bjorklund
Дата:
Сообщение: Re: NULL in arrays