]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix bogus return macros in range_overright_internal().
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 16 Aug 2014 17:48:49 +0000 (13:48 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 16 Aug 2014 17:48:49 +0000 (13:48 -0400)
commit6ad25325dd6e52db36eb667db68d5601d8fa4acc
tree557314bdc100653369293a15faba91b0c3bdca35
parentc5e2333aaf510dce45d8de7deb461d8569832839
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.
src/backend/utils/adt/rangetypes.c