• unknown's avatar
    Fix bug lp:856152 · f40f0ff6
    unknown authored
    Analysis:
    The cause of the bug was that the method
    subselect_rowid_merge_engine::partial_match()
    was not designed for re-execution within the
    same query. Specifically, it didn't cleanup
    the bitmap of matching keys after completion.
    
    The test query requires double execution of
    the IN predicate because it first checks the
    predicate as a constant condition. The second
    execution during regular execution used the bitmap
    of matching keys produced by the first execution
    instead of starting with a clean one.
    
    Solution:
    Cleanup the bitmap of matching keys at the end of
    the partial matching procedure.
    
    f40f0ff6
subselect_partial_match.test 10.5 KB