aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeFunctionscan.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-03-23 20:24:41 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-03-23 20:24:41 +0000
commit23a41573c4fcf32c406d5c4a81a4f2645dbd8304 (patch)
treecf6b4710a380803f329d392614d9510d9100a62e /src/backend/executor/nodeFunctionscan.c
parent547b6e537aa8bbae83a8a4c4d0d7f216390bdb9c (diff)
downloadpostgresql-23a41573c4fcf32c406d5c4a81a4f2645dbd8304.tar.gz
postgresql-23a41573c4fcf32c406d5c4a81a4f2645dbd8304.zip
Adjust DatumGetBool macro so that it isn't fooled by garbage in the Datum
to the left of the actual bool value. While in most cases there won't be any, our support for old-style user-defined functions violates the C spec to the extent of calling functions that might return char or short through a function pointer declared to return "char *", which we then coerce to Datum. It is not surprising that the result might contain garbage high-order bits ... what is surprising is that we didn't see such cases long ago. Per report from Magnus.
Diffstat (limited to 'src/backend/executor/nodeFunctionscan.c')
0 files changed, 0 insertions, 0 deletions