diff options
author | bell@sanja.is.com.ua <> | 2004-07-16 01:15:55 +0300 |
---|---|---|
committer | bell@sanja.is.com.ua <> | 2004-07-16 01:15:55 +0300 |
commit | 9336d36cf81f404088844fc31918887799d3da03 (patch) | |
tree | 7a8e815ca26d9138de3bc77a619aa8103e037911 /sql/sp.cc | |
parent | 2fd11169ab10b8d752afbcc2dd58a15cf4de9c45 (diff) | |
download | mariadb-git-9336d36cf81f404088844fc31918887799d3da03.tar.gz |
VIEW
two TABLE_LIST copy eliminated
Diffstat (limited to 'sql/sp.cc')
-rw-r--r-- | sql/sp.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sql/sp.cc b/sql/sp.cc index 9ae7e6bef9e..408d676aebe 100644 --- a/sql/sp.cc +++ b/sql/sp.cc @@ -570,17 +570,20 @@ db_show_routine_status(THD *thd, int type, const char *wild) goto err_case; } - /* Init fields */ - setup_tables(&tables); + /* + Init fields + + tables is not VIEW for sure => we can pass 0 as condition + */ + setup_tables(thd, &tables, 0); for (used_field= &used_fields[0]; used_field->field_name; used_field++) { - TABLE_LIST *not_used; Item_field *field= new Item_field("mysql", "proc", used_field->field_name); if (!(used_field->field= find_field_in_tables(thd, field, &tables, - ¬_used, TRUE))) + 0, TRUE, 1))) { res= SP_INTERNAL_ERROR; goto err_case1; |