diff options
Diffstat (limited to 'sql/sp.cc')
-rw-r--r-- | sql/sp.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sp.cc b/sql/sp.cc index 5798eedbad9..3b3a307c859 100644 --- a/sql/sp.cc +++ b/sql/sp.cc @@ -575,6 +575,7 @@ db_show_routine_status(THD *thd, int type, const char *wild) Item *item; List<Item> field_list; struct st_used_field *used_field; + TABLE_LIST *leaves= 0; st_used_field used_fields[array_elements(init_fields)]; memcpy((char*) used_fields, (char*) init_fields, sizeof(used_fields)); @@ -607,7 +608,7 @@ db_show_routine_status(THD *thd, int type, const char *wild) tables is not VIEW for sure => we can pass 0 as condition */ - setup_tables(thd, &tables, 0); + setup_tables(thd, &tables, 0, &leaves, 0); for (used_field= &used_fields[0]; used_field->field_name; used_field++) |