From 6d0419f6bcc213d387191a32e81a37ae877b84b4 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 18 Jul 2007 12:27:54 -0400 Subject: [PATCH] Move the filling of the table_name column above the initialization, so that the init function has access to the name. --- sql/sql_show.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/sql_show.cc b/sql/sql_show.cc index c6bf816b290..4d0783a9a92 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -5904,6 +5904,7 @@ int initialize_schema_table(st_plugin_int *plugin) schema_table->old_format= make_old_format; schema_table->idx_field1= -1, schema_table->idx_field2= -1; + schema_table->table_name= plugin->name.str; if (plugin->plugin->init(schema_table)) { @@ -5911,7 +5912,6 @@ int initialize_schema_table(st_plugin_int *plugin) plugin->name.str); goto err; } - schema_table->table_name= plugin->name.str; } DBUG_RETURN(0);