summaryrefslogtreecommitdiff
path: root/sql/table.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/table.h')
-rw-r--r--sql/table.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/table.h b/sql/table.h
index e4e5b839a85..3fe7ef53f4e 100644
--- a/sql/table.h
+++ b/sql/table.h
@@ -665,8 +665,9 @@ struct TABLE_SHARE
plugin_ref db_plugin; /* storage engine plugin */
inline handlerton *db_type() const /* table_type for handler */
{
- // DBUG_ASSERT(db_plugin);
- return db_plugin ? plugin_data(db_plugin, handlerton*) : NULL;
+ return is_view ? view_pseudo_hton :
+ db_plugin ? plugin_data(db_plugin, handlerton*)
+ : NULL;
}
enum row_type row_type; /* How rows are stored */
enum tmp_table_type tmp_table;