• Varun Gupta's avatar
    MDEV-22303: Incorrect ordering with REGEXP_REPLACE and OFFSET/LIMIT · ade8253c
    Varun Gupta authored
    For character sets and collation where character to weight mapping > 1,
    there we need to make sure while creating a sort key,
    a temporary buffer is created to store the value of the item by val_str function
    and then copy that value back to the sort buffer.
    In this case when using a priority queue Sort_param::tmp_buffer was not allocated.
    
    Minor refactoring:
    Changed Sort_param::tmp_buffer from char* to String
    ade8253c
filesort.cc 89.3 KB