Skip to content

Commit 7effb0f

Browse files
author
Tor Didriksen
committed
Bug#21172963 ASSERTION `PARAM.SORT_LENGTH != 0' FAILED IN SQL/FILESORT.CC:361
This affects debug versions only. The bug was fixed (for order-by-with-limit) by the patch for Bug #19660891 HANDLE_FATAL_SIGNAL (SIG=11) IN QUEUE_INSERT Merge-sort uses the same compare function, and *does* handle zero-length keys during merge sort. So the DBUG_ASSERT is wrong.
1 parent cd74d58 commit 7effb0f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

sql/filesort.cc

-3
Original file line numberDiff line numberDiff line change
@@ -365,9 +365,6 @@ ha_rows filesort(THD *thd, TABLE *table, Filesort *filesort,
365365
}
366366
else
367367
{
368-
/* filesort cannot handle zero-length records during merge. */
369-
DBUG_ASSERT(param.sort_length != 0);
370-
371368
if (table_sort.buffpek && table_sort.buffpek_len < maxbuffer)
372369
{
373370
my_free(table_sort.buffpek);

0 commit comments

Comments
 (0)