pgsql: Fix bogus return macros in range_overright_internal(). - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix bogus return macros in range_overright_internal().
Date
Msg-id E1XIi6I-00078x-Fj@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix bogus return macros in range_overright_internal().

PG_RETURN_BOOL() should only be used in functions following the V1 SQL
function API.  This coding accidentally fails to fail since letting the
compiler coerce the Datum representation of bool back to plain bool
does give the right answer; but that doesn't make it a good idea.

Back-patch to older branches just to avoid unnecessary code divergence.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/364f7cd4b6d2bb89be55c8915fcd08b69b5eb84e

Modified Files
--------------
src/backend/utils/adt/rangetypes.c |    6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix bogus return macros in range_overright_internal().
Next
From: Tom Lane
Date:
Subject: pgsql: Fix bogus return macros in range_overright_internal().