pgsql: Fix bugs in comparison functions for multirange_bsearch_match() - Mailing list pgsql-committers

From Alexander Korotkov
Subject pgsql: Fix bugs in comparison functions for multirange_bsearch_match()
Date
Msg-id E1kuLsE-0000pv-OD@gemulon.postgresql.org
Whole thread Raw
List 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 by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: doc: Improve some grammar and sentences
Next
From: Alexander Korotkov
Date:
Subject: Re: pgsql: Add support of multirange matching to the existing range GiST in