minor update.
Project: http://git-wip-us.apache.org/repos/asf/trafodion/repo Commit: http://git-wip-us.apache.org/repos/asf/trafodion/commit/6445a493 Tree: http://git-wip-us.apache.org/repos/asf/trafodion/tree/6445a493 Diff: http://git-wip-us.apache.org/repos/asf/trafodion/diff/6445a493 Branch: refs/heads/master Commit: 6445a4934c3bdaa435a71d4b9e34dbbb5ca63c04 Parents: 3c7212e Author: Prashant Vasudev <[email protected]> Authored: Wed Aug 1 19:29:35 2018 +0000 Committer: Prashant Vasudev <[email protected]> Committed: Wed Aug 1 19:29:35 2018 +0000 ---------------------------------------------------------------------- core/sql/executor/ExSequence.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafodion/blob/6445a493/core/sql/executor/ExSequence.cpp ---------------------------------------------------------------------- diff --git a/core/sql/executor/ExSequence.cpp b/core/sql/executor/ExSequence.cpp index e66551c..327fb96 100644 --- a/core/sql/executor/ExSequence.cpp +++ b/core/sql/executor/ExSequence.cpp @@ -996,7 +996,7 @@ short ExSequenceTcb::work() ComDiagsArea *myDiags = NULL; if (!cluster_->flush(myDiags, heap_)) { // flush the buffers // if no errors this code path is not visited - if (myDiags) + if (myDiags != NULL) { // some error updateDiagsArea(myDiags); pstate->step_ = ExSeq_ERROR; @@ -1047,7 +1047,7 @@ short ExSequenceTcb::work() ComDiagsArea *myDiags = NULL; if (!cluster_->read(myDiags, heap_)) { - if (myDiags) { // some error + if (myDiags != NULL) { // some error updateDiagsArea(myDiags); pstate->step_ = ExSeq_ERROR; break;
