diff options
Diffstat (limited to 'sql/table.h')
-rw-r--r-- | sql/table.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/table.h b/sql/table.h index fc2f25f3aa8..6dba46a535e 100644 --- a/sql/table.h +++ b/sql/table.h @@ -172,7 +172,12 @@ typedef struct st_table_share ulong timestamp_offset; /* Set to offset+1 of record */ ulong reclength; /* Recordlength */ - handlerton *db_type; /* table_type for handler */ + 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; + } enum row_type row_type; /* How rows are stored */ enum tmp_table_type tmp_table; |