summaryrefslogtreecommitdiff
path: root/sql/sql_show.cc
diff options
context:
space:
mode:
authorbrian@zim.(none) <>2005-11-10 08:24:21 -0800
committerbrian@zim.(none) <>2005-11-10 08:24:21 -0800
commit510d0f24c88ed6b157c055dec7a2d5342c6a0a7b (patch)
treead803d0cd2c9f0ef981d67cce5ae9d1e1ce6b581 /sql/sql_show.cc
parentb318ed1768e98af3aa8a680ade343533f9323bf6 (diff)
downloadmariadb-git-510d0f24c88ed6b157c055dec7a2d5342c6a0a7b.tar.gz
Added handlerton flag to make storage engines invisable via flag.
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r--sql/sql_show.cc25
1 files changed, 14 insertions, 11 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index b4b24e0b6be..ef5db767809 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -70,17 +70,20 @@ bool mysqld_show_storage_engines(THD *thd)
handlerton **types;
for (types= sys_table_types; *types; types++)
{
- protocol->prepare_for_resend();
- protocol->store((*types)->name, system_charset_info);
- const char *option_name= show_comp_option_name[(int) (*types)->state];
-
- if ((*types)->state == SHOW_OPTION_YES &&
- !my_strcasecmp(system_charset_info, default_type_name, (*types)->name))
- option_name= "DEFAULT";
- protocol->store(option_name, system_charset_info);
- protocol->store((*types)->comment, system_charset_info);
- if (protocol->write())
- DBUG_RETURN(TRUE);
+ if (!((*types)->flags & HTON_HIDDEN))
+ {
+ protocol->prepare_for_resend();
+ protocol->store((*types)->name, system_charset_info);
+ const char *option_name= show_comp_option_name[(int) (*types)->state];
+
+ if ((*types)->state == SHOW_OPTION_YES &&
+ !my_strcasecmp(system_charset_info, default_type_name, (*types)->name))
+ option_name= "DEFAULT";
+ protocol->store(option_name, system_charset_info);
+ protocol->store((*types)->comment, system_charset_info);
+ if (protocol->write())
+ DBUG_RETURN(TRUE);
+ }
}
send_eof(thd);
DBUG_RETURN(FALSE);