Commit 459a35cc authored by thek@adventure.(none)'s avatar thek@adventure.(none)

Merge kpettersson@bk-internal.mysql.com:/home/bk/mysql-5.1-bugteam

into  adventure.(none):/home/thek/Development/cpp/mysql-5.1-bugteam
parents 0844a628 d8e2b871
...@@ -285,7 +285,7 @@ static int emb_stmt_execute(MYSQL_STMT *stmt) ...@@ -285,7 +285,7 @@ static int emb_stmt_execute(MYSQL_STMT *stmt)
my_bool res; my_bool res;
int4store(header, stmt->stmt_id); int4store(header, stmt->stmt_id);
header[4]= (char)stmt->flags; header[4]= (uchar)stmt->flags;
thd= (THD*)stmt->mysql->thd; thd= (THD*)stmt->mysql->thd;
thd->client_param_count= stmt->param_count; thd->client_param_count= stmt->param_count;
thd->client_params= stmt->params; thd->client_params= stmt->params;
......
...@@ -3898,7 +3898,6 @@ static my_bool iter_schema_engines(THD *thd, plugin_ref plugin, ...@@ -3898,7 +3898,6 @@ static my_bool iter_schema_engines(THD *thd, plugin_ref plugin,
DBUG_RETURN(0); DBUG_RETURN(0);
} }
int fill_schema_engines(THD *thd, TABLE_LIST *tables, COND *cond) int fill_schema_engines(THD *thd, TABLE_LIST *tables, COND *cond)
{ {
return plugin_foreach(thd, iter_schema_engines, return plugin_foreach(thd, iter_schema_engines,
...@@ -5870,6 +5869,9 @@ bool get_schema_tables_result(JOIN *join, ...@@ -5870,6 +5869,9 @@ bool get_schema_tables_result(JOIN *join,
bool is_subselect= (&lex->unit != lex->current_select->master_unit() && bool is_subselect= (&lex->unit != lex->current_select->master_unit() &&
lex->current_select->master_unit()->item); lex->current_select->master_unit()->item);
/* A value of 0 indicates a dummy implementation */
if (table_list->schema_table->fill_table == 0)
continue;
/* skip I_S optimizations specific to get_all_tables */ /* skip I_S optimizations specific to get_all_tables */
if (thd->lex->describe && if (thd->lex->describe &&
...@@ -6548,6 +6550,9 @@ ST_SCHEMA_TABLE schema_tables[]= ...@@ -6548,6 +6550,9 @@ ST_SCHEMA_TABLE schema_tables[]=
#ifdef HAVE_EVENT_SCHEDULER #ifdef HAVE_EVENT_SCHEDULER
{"EVENTS", events_fields_info, create_schema_table, {"EVENTS", events_fields_info, create_schema_table,
Events::fill_schema_events, make_old_format, 0, -1, -1, 0, 0}, Events::fill_schema_events, make_old_format, 0, -1, -1, 0, 0},
#else
{"EVENTS", events_fields_info, create_schema_table,
0, make_old_format, 0, -1, -1, 0, 0},
#endif #endif
{"FILES", files_fields_info, create_schema_table, {"FILES", files_fields_info, create_schema_table,
fill_schema_files, 0, 0, -1, -1, 0, 0}, fill_schema_files, 0, 0, -1, -1, 0, 0},
......
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