mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
Clean up more code using "(expr) ? true : false"
This is similar to fd0625c
, taking care of any remaining code paths that
are worth the cleanup. This also changes some cases using opposite
expression patterns.
Author: Justin Pryzby, Masahiko Sawada
Discussion: https://postgr.es/m/CAD21AoCdF8dnUvr-BUWWGvA_XhKSoANacBMZb6jKyCk4TYfQ2Q@mail.gmail.com
This commit is contained in:
@ -195,7 +195,7 @@ ExecInitResult(Result *node, EState *estate, int eflags)
|
||||
resstate->ps.ExecProcNode = ExecResult;
|
||||
|
||||
resstate->rs_done = false;
|
||||
resstate->rs_checkqual = (node->resconstantqual == NULL) ? false : true;
|
||||
resstate->rs_checkqual = (node->resconstantqual != NULL);
|
||||
|
||||
/*
|
||||
* Miscellaneous initialization
|
||||
@ -260,7 +260,7 @@ void
|
||||
ExecReScanResult(ResultState *node)
|
||||
{
|
||||
node->rs_done = false;
|
||||
node->rs_checkqual = (node->resconstantqual == NULL) ? false : true;
|
||||
node->rs_checkqual = (node->resconstantqual != NULL);
|
||||
|
||||
/*
|
||||
* If chgParam of subnode is not null then plan will be re-scanned by
|
||||
|
Reference in New Issue
Block a user