summaryrefslogtreecommitdiff
path: root/sql/opt_subselect.cc
diff options
context:
space:
mode:
authorVarun Gupta <varunraiko1803@gmail.com>2017-01-24 01:21:43 +0530
committerVarun Gupta <varunraiko1803@gmail.com>2017-01-24 01:21:43 +0530
commit1f3ad6a4ba63074c51c84dff449c35a8314a7f36 (patch)
tree8a4fc74e65c003105eeae626887b2bb9ce63caaf /sql/opt_subselect.cc
parent45e40892c5bcd541cd93aebe8ba15b7a27289621 (diff)
downloadmariadb-git-1f3ad6a4ba63074c51c84dff449c35a8314a7f36.tar.gz
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.
Diffstat (limited to 'sql/opt_subselect.cc')
-rw-r--r--sql/opt_subselect.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/opt_subselect.cc b/sql/opt_subselect.cc
index a9222cbca42..43b9bdd6255 100644
--- a/sql/opt_subselect.cc
+++ b/sql/opt_subselect.cc
@@ -4053,13 +4053,13 @@ SJ_TMP_TABLE::create_sj_weedout_tmp_table(THD *thd)
share->db_plugin= ha_lock_engine(0, TMP_ENGINE_HTON);
table->file= get_new_handler(share, &table->mem_root,
share->db_type());
- DBUG_ASSERT(uniq_tuple_length_arg <= table->file->max_key_length());
}
else
{
share->db_plugin= ha_lock_engine(0, heap_hton);
table->file= get_new_handler(share, &table->mem_root,
share->db_type());
+ DBUG_ASSERT(uniq_tuple_length_arg <= table->file->max_key_length());
}
if (!table->file)
goto err;