Commit 76fb6d69 authored by unknown's avatar unknown

Merge baker@bk-internal.mysql.com:/home/bk/mysql-5.0

into  zim.(none):/home/brian/mysql/mysql-5.0

parents 33956088 fca8f01a
...@@ -332,7 +332,6 @@ CSV YES/NO CSV storage engine ...@@ -332,7 +332,6 @@ CSV YES/NO CSV storage engine
ndbcluster YES/NO Clustered, fault-tolerant, memory-based tables ndbcluster YES/NO Clustered, fault-tolerant, memory-based tables
FEDERATED YES/NO Federated MySQL storage engine FEDERATED YES/NO Federated MySQL storage engine
MRG_MYISAM YES/NO Collection of identical MyISAM tables MRG_MYISAM YES/NO Collection of identical MyISAM tables
binlog YES/NO This is a meta storage engine to represent the binlog in a transaction
ISAM YES/NO Obsolete storage engine ISAM YES/NO Obsolete storage engine
drop table if exists t5; drop table if exists t5;
prepare stmt1 from ' drop table if exists t5 ' ; prepare stmt1 from ' drop table if exists t5 ' ;
......
...@@ -401,8 +401,9 @@ struct show_table_alias_st { ...@@ -401,8 +401,9 @@ struct show_table_alias_st {
/* Possible flags of a handlerton */ /* Possible flags of a handlerton */
#define HTON_NO_FLAGS 0 #define HTON_NO_FLAGS 0
#define HTON_CLOSE_CURSORS_AT_COMMIT (1 << 0) #define HTON_CLOSE_CURSORS_AT_COMMIT (1 << 0)
#define HTON_ALTER_NOT_SUPPORTED (1 << 1) #define HTON_ALTER_NOT_SUPPORTED (1 << 1) //Engine does not support alter
#define HTON_CAN_RECREATE (1 << 2) #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 typedef struct st_thd_trans
{ {
......
...@@ -67,7 +67,7 @@ handlerton binlog_hton = { ...@@ -67,7 +67,7 @@ handlerton binlog_hton = {
NULL, /* create_cursor_read_view */ NULL, /* create_cursor_read_view */
NULL, /* set_cursor_read_view */ NULL, /* set_cursor_read_view */
NULL, /* close_cursor_read_view */ NULL, /* close_cursor_read_view */
HTON_NO_FLAGS HTON_HIDDEN
}; };
/* /*
......
...@@ -70,17 +70,20 @@ bool mysqld_show_storage_engines(THD *thd) ...@@ -70,17 +70,20 @@ bool mysqld_show_storage_engines(THD *thd)
handlerton **types; handlerton **types;
for (types= sys_table_types; *types; types++) for (types= sys_table_types; *types; types++)
{ {
protocol->prepare_for_resend(); if (!((*types)->flags & HTON_HIDDEN))
protocol->store((*types)->name, system_charset_info); {
const char *option_name= show_comp_option_name[(int) (*types)->state]; protocol->prepare_for_resend();
protocol->store((*types)->name, system_charset_info);
if ((*types)->state == SHOW_OPTION_YES && const char *option_name= show_comp_option_name[(int) (*types)->state];
!my_strcasecmp(system_charset_info, default_type_name, (*types)->name))
option_name= "DEFAULT"; if ((*types)->state == SHOW_OPTION_YES &&
protocol->store(option_name, system_charset_info); !my_strcasecmp(system_charset_info, default_type_name, (*types)->name))
protocol->store((*types)->comment, system_charset_info); option_name= "DEFAULT";
if (protocol->write()) protocol->store(option_name, system_charset_info);
DBUG_RETURN(TRUE); protocol->store((*types)->comment, system_charset_info);
if (protocol->write())
DBUG_RETURN(TRUE);
}
} }
send_eof(thd); send_eof(thd);
DBUG_RETURN(FALSE); DBUG_RETURN(FALSE);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment