summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/ha_partition.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc
index 13218e0891a..9803847fe2f 100644
--- a/sql/ha_partition.cc
+++ b/sql/ha_partition.cc
@@ -493,8 +493,9 @@ void ha_partition::init_handler_variables()
const char *ha_partition::real_table_type() const
{
- // we can do this since we only support a single engine type
- return hton_name(m_main_engine_ht)->str;
+ /* MDEV-22168 should be fixed with the ddl_log records */
+ return m_main_engine_ht ?
+ hton_name(m_main_engine_ht)->str : m_file[0]->table_type();
}
/*