Skip to content

Commit 8725b35

Browse files
committed
MDEV-11108: Assertion `uniq_tuple_length_arg <= table->file->max_key_length()' failed in SJ_TMP_TABLE::create_sj_weedout_tmp_table
Removed the assert from the if clause to the else clause.
1 parent 18ef02b commit 8725b35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/opt_subselect.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4044,13 +4044,13 @@ SJ_TMP_TABLE::create_sj_weedout_tmp_table(THD *thd)
40444044
share->db_plugin= ha_lock_engine(0, TMP_ENGINE_HTON);
40454045
table->file= get_new_handler(share, &table->mem_root,
40464046
share->db_type());
4047-
DBUG_ASSERT(uniq_tuple_length_arg <= table->file->max_key_length());
40484047
}
40494048
else
40504049
{
40514050
share->db_plugin= ha_lock_engine(0, heap_hton);
40524051
table->file= get_new_handler(share, &table->mem_root,
40534052
share->db_type());
4053+
DBUG_ASSERT(uniq_tuple_length_arg <= table->file->max_key_length());
40544054
}
40554055
if (!table->file)
40564056
goto err;

0 commit comments

Comments
 (0)