summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <brian@zim.(none)>2005-11-10 08:28:50 -0800
committerunknown <brian@zim.(none)>2005-11-10 08:28:50 -0800
commit76fb6d69206b3d146c69bc55b8670ae4d87f9b79 (patch)
treebb07cc589d3ea523ab04bb1a9bcd06ff1774f548 /sql
parent33956088167565019fd4626bd9fa85c3d681312c (diff)
parentfca8f01abcc7ba150773cda3aeb5322a95a210d5 (diff)
downloadmariadb-git-76fb6d69206b3d146c69bc55b8670ae4d87f9b79.tar.gz
Merge baker@bk-internal.mysql.com:/home/bk/mysql-5.0
into zim.(none):/home/brian/mysql/mysql-5.0
Diffstat (limited to 'sql')
-rw-r--r--sql/handler.h5
-rw-r--r--sql/log.cc2
-rw-r--r--sql/sql_show.cc25
3 files changed, 18 insertions, 14 deletions
diff --git a/sql/handler.h b/sql/handler.h
index e317f95b990..be188f7cacd 100644
--- a/sql/handler.h
+++ b/sql/handler.h
@@ -401,8 +401,9 @@ struct show_table_alias_st {
/* Possible flags of a handlerton */
#define HTON_NO_FLAGS 0
#define HTON_CLOSE_CURSORS_AT_COMMIT (1 << 0)
-#define HTON_ALTER_NOT_SUPPORTED (1 << 1)
-#define HTON_CAN_RECREATE (1 << 2)
+#define HTON_ALTER_NOT_SUPPORTED (1 << 1) //Engine does not support alter
+#define HTON_CAN_RECREATE (1 << 2) //Delete all is used fro truncate
+#define HTON_HIDDEN (1 << 3) //Engine does not appear in lists
typedef struct st_thd_trans
{
diff --git a/sql/log.cc b/sql/log.cc
index 7ea2dba2144..4b3d6698051 100644
--- a/sql/log.cc
+++ b/sql/log.cc
@@ -67,7 +67,7 @@ handlerton binlog_hton = {
NULL, /* create_cursor_read_view */
NULL, /* set_cursor_read_view */
NULL, /* close_cursor_read_view */
- HTON_NO_FLAGS
+ HTON_HIDDEN
};
/*
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);