pgsql: Use the proper macro to convert a bool to a Datum.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Use the proper macro to convert a bool to a Datum.
Date: 2011-11-27 17:57:20
Message-ID: E1RUiye-0000dd-71@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Use the proper macro to convert a bool to a Datum.

The original coding was
var->value = (Datum) state;
which is bogus, and then in commit 2f0f7b4bce13e68394543728801ef011fd82fac6
it was "corrected" to
var->value = PointerGetDatum(state);
which is a faithful translation but still wrong.

This seems purely cosmetic, though, so no need for a back-patch.

Pavel Stehule

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/8722a1a06aedbbbeb4f848a7b9ee62d6ae8649c6

Modified Files
--------------
src/pl/plpgsql/src/pl_exec.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2011-11-27 20:46:29 pgsql: Add pg_upgrade test suite
Previous Message Tom Lane 2011-11-27 17:42:59 Re: pgsql: Move pg_dump memory routines into pg_dumpmem.c/h and restore com