pgsql: Fix bogus return macros in range_overright_internal().

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix bogus return macros in range_overright_internal().
Дата
Msg-id E1XIi6I-000791-Fw@gemulon.postgresql.org
обсуждение исходный текст
Список 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_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/6ad25325dd6e52db36eb667db68d5601d8fa4acc

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


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix bogus return macros in range_overright_internal().
Следующее
От: Noah Misch
Дата:
Сообщение: Re: pgsql: Cosmetic improvements in plpython's make rule for libpython impo