diff options
author | unknown <jimw@mysql.com> | 2005-04-15 11:52:35 -0700 |
---|---|---|
committer | unknown <jimw@mysql.com> | 2005-04-15 11:52:35 -0700 |
commit | 484943a2af82eaa19218b22a507631453b0d0aab (patch) | |
tree | c071f44560899c50e15a9e969fa6b296185f8f13 /sql/handler.cc | |
parent | 315f66c8e26a2ab8e427c60b3bc51c2cfa1c97f6 (diff) | |
parent | e687d6beae78b980d984fdbfb518c494295d5200 (diff) | |
download | mariadb-git-484943a2af82eaa19218b22a507631453b0d0aab.tar.gz |
Merge mysql.com:/home/jimw/my/mysql-4.1-9815
into mysql.com:/home/jimw/my/mysql-4.1-clean
Diffstat (limited to 'sql/handler.cc')
-rw-r--r-- | sql/handler.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sql/handler.cc b/sql/handler.cc index b12032ccd81..7d8fc5d8110 100644 --- a/sql/handler.cc +++ b/sql/handler.cc @@ -145,6 +145,20 @@ const char *ha_get_storage_engine(enum db_type db_type) return "none"; } + +my_bool ha_storage_engine_is_enabled(enum db_type database_type) +{ + show_table_type_st *types; + for (types= sys_table_types; types->type; types++) + { + if ((database_type == types->db_type) && + (*types->value == SHOW_OPTION_YES)) + return TRUE; + } + return FALSE; +} + + /* Use other database handler if databasehandler is not incompiled */ enum db_type ha_checktype(enum db_type database_type) |