aboutsummaryrefslogtreecommitdiff
path: root/src/include/executor/nodeProjectSet.h
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2017-01-18 18:06:13 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2017-01-18 18:06:13 -0300
commit594e61a1de03ab93779e7e3d853edb7859d5c3cf (patch)
tree2b367413482060b73741bf587e76afed47287d36 /src/include/executor/nodeProjectSet.h
parentd00ca333c338b40911e89939c3cc771025978595 (diff)
downloadpostgresql-594e61a1de03ab93779e7e3d853edb7859d5c3cf.tar.gz
postgresql-594e61a1de03ab93779e7e3d853edb7859d5c3cf.zip
Change some test macros to return true booleans
These macros work fine when they are used directly in an "if" test or similar, but as soon as the return values are assigned to boolean variables (or passed as boolean arguments to some function), they become bugs, hopefully caught by compiler warnings. To avoid future problems, fix the definitions so that they return actual booleans. To further minimize the risk that somebody uses them in back-patched fixes that only work correctly in branches starting from the current master and not in old ones, back-patch the change to supported branches as appropriate. See also commit af4472bcb88ab36b9abbe7fd5858e570a65a2d1a, and the long discussion (and larger patch) in the thread mentioned in its commit message. Discussion: https://postgr.es/m/18672.1483022414@sss.pgh.pa.us
Diffstat (limited to 'src/include/executor/nodeProjectSet.h')
0 files changed, 0 insertions, 0 deletions