pgsql: Fix bugs in comparison functions for multirange_bsearch_match()

From: Alexander Korotkov <akorotkov(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix bugs in comparison functions for multirange_bsearch_match()
Date: 2020-12-29 20:45:42
Message-ID: E1kuLsE-0000pv-OD@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alexander Korotkov 2020-12-29 20:53:14 Re: pgsql: Add support of multirange matching to the existing range GiST in
Previous Message Michael Paquier 2020-12-29 09:21:31 pgsql: doc: Improve some grammar and sentences