diff options
author | unknown <marko@hundin.mysql.fi> | 2005-02-08 13:35:10 +0200 |
---|---|---|
committer | unknown <marko@hundin.mysql.fi> | 2005-02-08 13:35:10 +0200 |
commit | 198578d68243966479604180229c9f5c7e16b4d0 (patch) | |
tree | 9d5f7f5839e4ce4399231ffd7b8978ee2873697e /sql/ha_innodb.h | |
parent | b0cc9d7ad7baa392778db1e1da1581030c2dbfdc (diff) | |
download | mariadb-git-198578d68243966479604180229c9f5c7e16b4d0.tar.gz |
InnoDB: Make SHOW TABLE STATUS report Row_format=Compact and
Row_format=Redundant
sql/ha_innodb.cc:
Implement get_row_type()
sql/ha_innodb.h:
Declare get_row_type()
sql/handler.h:
Declare get_row_type()
sql/sql_show.cc:
get_schema_tables_record(): Primarily invoke handler::get_row_type()
in order to determine the row type within the storage engine.
Secondarily use the old method of examining the HA_OPTION flags.
Diffstat (limited to 'sql/ha_innodb.h')
-rw-r--r-- | sql/ha_innodb.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/ha_innodb.h b/sql/ha_innodb.h index cca33cbbe1c..0672485f4fe 100644 --- a/sql/ha_innodb.h +++ b/sql/ha_innodb.h @@ -96,6 +96,11 @@ class ha_innobase: public handler { } ~ha_innobase() {} + /* + Get the row type from the storage engine. If this method returns + ROW_TYPE_NOT_USED, the information in HA_CREATE_INFO should be used. + */ + enum row_type get_row_type() const; const char* table_type() const { return("InnoDB");} const char *index_type(uint key_number) { return "BTREE"; } |