*** postgresql-6.5.2/src/backend/executor/execQual.c.orig Sun Jun 13 04:22:40 1999 --- postgresql-6.5.2/src/backend/executor/execQual.c Sat Oct 9 19:53:01 1999 *************** *** 1128,1136 **** /* * if we have a true test, then we return the result, since the ! * case statement is satisfied. */ ! if (DatumGetInt32(const_value) != 0) { const_value = ExecEvalExpr((Node *) wclause->result, econtext, --- 1128,1137 ---- /* * if we have a true test, then we return the result, since the ! * case statement is satisfied. A NULL result from the test is ! * not considered true. */ ! if (DatumGetInt32(const_value) != 0 && ! *isNull) { const_value = ExecEvalExpr((Node *) wclause->result, econtext,