• Igor Babaev's avatar
    Fixed bug #51092. · 1c7ba7ba
    Igor Babaev authored
    The function JOIN_CACHE::read_all_record_fields could return 0
    for an incremental join cache in two cases:
    1. there were no more records in the associated join buffer
    2. there was no table fields stored in the join buffer.
    As a result the function JOIN_CACHE::get_record() could
    return prematurely and did not read all needed fields from
    join buffers into the record buffer.
    
    Now the function JOIN_CACHE::read_all_record_fields returns
    -1 if there are no more records in the associated join buffer.
    1c7ba7ba
join_cache.result 124 KB