pgsql: Improve implementation of EEOP_BOOLTEST_* opcodes.
pgsql: Improve implementation of EEOP_BOOLTEST_* opcodes.
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Improve implementation of EEOP_BOOLTEST_* opcodes. Both Andres and I were happy with "*op->resvalue = *op->resvalue;", but Coverity isn't; and it has a point, because some compilers might not be smart enough to elide that. So remove it. In passing, also avoid doing unnecessary assignments to *op->resnull when it's already known to have the right value. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/d77f014efa7eda4357fbc851dbf25c6b256ddf35 Modified Files -------------- src/backend/executor/execExprInterp.c | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-)