• Ramil Kalimullin's avatar
    Fix for bug #54459: Assertion failed: param.sort_length, · 4e872863
    Ramil Kalimullin authored
    file .\filesort.cc, line 149 (part II)
    
    Problem: the server didn't disregard sort order 
    for some zero length tuples.
    
    Fix: skip sort order in such a case 
    (zero length NOT NULL string functions).
    
    
    mysql-test/r/select.result:
      Fix for bug #54459: Assertion failed: param.sort_length, 
      file .\filesort.cc, line 149 (part II)
        - test result.
    mysql-test/t/select.test:
      Fix for bug #54459: Assertion failed: param.sort_length, 
      file .\filesort.cc, line 149 (part II)
        - test case.
    sql/sql_select.cc:
      Fix for bug #54459: Assertion failed: param.sort_length, 
      file .\filesort.cc, line 149 (part II)
        - disregard sort order for zero length NOT NULL string functions
      along with zero length NOT NULL fields.
    4e872863
select.result 139 KB