diff options
author | gshchepa/uchum@gleb.loc <> | 2007-07-05 03:30:54 +0500 |
---|---|---|
committer | gshchepa/uchum@gleb.loc <> | 2007-07-05 03:30:54 +0500 |
commit | c205524c1d05985795dd9375ffcf3297ce5c64c4 (patch) | |
tree | 86a547d9915702293cedffddb7ae82d7b835cbdc /sql/sql_show.cc | |
parent | 6336d8c1cb05b2f8e71451a78dfe4e6137237c71 (diff) | |
parent | cdea05a79377865e0c89aaf72cdc24362b76887e (diff) | |
download | mariadb-git-c205524c1d05985795dd9375ffcf3297ce5c64c4.tar.gz |
Merge gleb.loc:/home/uchum/work/bk/5.0-opt
into gleb.loc:/home/uchum/work/bk/5.1-opt
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r-- | sql/sql_show.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc index 903c8ab74f1..52aa29003e6 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -2250,11 +2250,9 @@ bool uses_only_table_name_fields(Item *item, TABLE_LIST *table) if (item->type() == Item::FUNC_ITEM) { Item_func *item_func= (Item_func*)item; - Item **child; - Item **item_end= (item_func->arguments()) + item_func->argument_count(); - for (child= item_func->arguments(); child != item_end; child++) + for (uint i=0; i<item_func->argument_count(); i++) { - if (!uses_only_table_name_fields(*child, table)) + if (!uses_only_table_name_fields(item_func->arguments()[i], table)) return 0; } } |