From a1f46cc8aae6896f526239675ce538a133595ced Mon Sep 17 00:00:00 2001 From: Alexey Botchkov Date: Tue, 13 Dec 2022 15:11:27 +0400 Subject: fix to make the RENAME working. --- sql/ha_partition.cc | 5 +++-- 1 file 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(); } /* -- cgit v1.2.1