summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2022-12-13 15:11:27 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2022-12-13 15:11:27 +0400
commita1f46cc8aae6896f526239675ce538a133595ced (patch)
tree709902320a97663165cbdc74bd58970bdcf4e14d
parent6daecf49f85efeff4d3ed7ad008478c6013b1f04 (diff)
downloadmariadb-git-bb-10.11-mdev-22168-hf.tar.gz
fix to make the RENAME working.bb-10.11-mdev-22168-hf
-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();
}
/*