diff options
author | eric@mysql.com <> | 2005-09-30 16:26:48 -0700 |
---|---|---|
committer | eric@mysql.com <> | 2005-09-30 16:26:48 -0700 |
commit | 5008a5f208dd7d1c94755fb5051401473465276f (patch) | |
tree | c1894e3d927782633ebebf8b571ef7b84d2689fe /sql/handler.cc | |
parent | 16cd4bd3321e0c21e6867898f5017074fbb6ce57 (diff) | |
download | mariadb-git-5008a5f208dd7d1c94755fb5051401473465276f.tar.gz |
Move handler specific options into handlerton flag check
BUG#13108
Diffstat (limited to 'sql/handler.cc')
-rw-r--r-- | sql/handler.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sql/handler.cc b/sql/handler.cc index 39d9b706ed2..5221ccbb7c5 100644 --- a/sql/handler.cc +++ b/sql/handler.cc @@ -183,6 +183,23 @@ const char *ha_get_storage_engine(enum db_type db_type) return "none"; } +bool ha_check_storage_engine_flag(enum db_type db_type, uint32 flag) +{ + show_table_type_st *types; + for (types= sys_table_types; types->type; types++) + { + if (db_type == types->db_type) + { + if (types->ht->flags & flag) + return TRUE; + else + return FALSE; + } + } + + return FALSE; +} + my_bool ha_storage_engine_is_enabled(enum db_type database_type) { |