diff options
Diffstat (limited to 'sql/ha_partition.cc')
-rw-r--r-- | sql/ha_partition.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc index f65ab41908d..feda3460c9f 100644 --- a/sql/ha_partition.cc +++ b/sql/ha_partition.cc @@ -305,7 +305,7 @@ void ha_partition::init_handler_variables() const char *ha_partition::table_type() const { // we can do this since we only support a single engine type - return m_file[0]->table_type(); + return m_file && m_file[0] ? m_file[0]->table_type() : "Unknown"; } |