pgsql: Fix longstanding error in contrib/intarray's int[] & int[] opera

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix longstanding error in contrib/intarray's int[] & int[] opera
Дата
Msg-id E1RyCC9-0006Mi-7w@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix longstanding error in contrib/intarray's int[] & int[] operator.

The array intersection code would give wrong results if the first entry of
the correct output array would be "1".  (I think only this value could be
at risk, since the previous word would always be a lower-bound entry with
that fixed value.)

Problem spotted by Julien Rouhaud, initial patch by Guillaume Lelarge,
cosmetic improvements by me.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/06d9afa6f93ec08a45da4de7afd97bbf16738739

Modified Files
--------------
contrib/intarray/_int_tool.c       |   13 +++++++------
contrib/intarray/expected/_int.out |    6 ++++++
contrib/intarray/sql/_int.sql      |    1 +
3 files changed, 14 insertions(+), 6 deletions(-)


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: pgsql: pg_dump: Miscellaneous tightening based on recent refactorings.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix longstanding error in contrib/intarray's int[] & int[] opera