pgsql: Fix bugs in comparison functions for multirange_bsearch_match()

Поиск
Список
Период
Сортировка
От Alexander Korotkov
Тема pgsql: Fix bugs in comparison functions for multirange_bsearch_match()
Дата
Msg-id E1kuLsE-0000pv-OD@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix bugs in comparison functions for multirange_bsearch_match()

Two functions multirange_range_overlaps_bsearch_comparison() and
multirange_range_contains_bsearch_comparison() contain bugs of returning -1
instead of 1.  This commit fixes these bugs and adds corresponding regression
tests.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a5b81b6f0006ea0b502780ce7f73d295a225842c

Modified Files
--------------
src/backend/utils/adt/multirangetypes.c       |  4 ++--
src/test/regress/expected/multirangetypes.out | 12 ++++++++++++
src/test/regress/sql/multirangetypes.sql      |  2 ++
3 files changed, 16 insertions(+), 2 deletions(-)


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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: pgsql: doc: Improve some grammar and sentences
Следующее
От: Alexander Korotkov
Дата:
Сообщение: Re: pgsql: Add support of multirange matching to the existing range GiST in