Fix bugs in comparison functions for multirange_bsearch_match()
Alexander Korotkov <akorotkov@postgresql.org>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/multirangetypes.c | modified | +2 −2 |
| src/test/regress/expected/multirangetypes.out | modified | +12 −0 |
| src/test/regress/sql/multirangetypes.sql | modified | +2 −0 |