git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 4a90181) | patch
Use the proper macro to convert a bool to a Datum.
2011年11月27日 17:57:11 +0000 (12:57 -0500)
2011年11月27日 17:57:11 +0000 (12:57 -0500)
commit 8722a1a06aedbbbeb4f848a7b9ee62d6ae8649c6
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
src/pl/plpgsql/src/pl_exec.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /