BUG #7730: intarray representation of empty arrays

Поиск
Список
Период
Сортировка
От elein@varlena.com
Тема BUG #7730: intarray representation of empty arrays
Дата
Msg-id E1Tg36N-0005dd-Vg@wrigleys.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #7730: intarray representation of empty arrays  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-bugs
The following bug has been logged on the website:

Bug reference:      7730
Logged by:          elein
Email address:      elein@varlena.com
PostgreSQL version: 9.2.1
Operating system:   Linux
Description:        =


select NULLIF('{1,2,3}'::integer[] - '{3,2,1}'::integer[], '{}'::integer[]);
This returns an empty array.  It should return NULL. =


Per RhodiumToad: the core code represents '{}' as an array with 0
dimensions, whereas intarray represents it as an array with 1 dimension but
0 elements

intarray should use the same standards as the core code if possible.  I
peered at the code and don't see anything untoward but did not have time to
spend on it.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: PITR potentially broken in 9.2
Следующее
От: Andres Freund
Дата:
Сообщение: Re: PITR potentially broken in 9.2