Ticket #176: query_nothing_and_not.patch

File query_nothing_and_not.patch, 504 bytes (added by Olly Betts, 17 years ago)

Patch to fix this bug

  • api/omqueryinternal.cc

     
    631631            }
    632632            break;
    633633        case OP_AND_MAYBE:
     634        case OP_AND_NOT:
    634635            // If left hand side is MatchNothing, we match nothing.
    635636            // If right hand side is MatchNothing, replace node with LHS.
    636637            // So, if either node is MatchNothing, replace node with LHS.