summaryrefslogtreecommitdiff
path: root/sql/sql_help.cc
diff options
context:
space:
mode:
authorgluh@eagle.(none) <>2007-02-26 15:54:43 +0400
committergluh@eagle.(none) <>2007-02-26 15:54:43 +0400
commit975a23ed0f3eed0f1d7e48743503a652682976ba (patch)
tree62234448cb3dc85a182c21b8ef92ed380c119cd6 /sql/sql_help.cc
parent7ffb94edcfb61546293e3b8cf2f4175ed4b2ae00 (diff)
parentd9831e91a19c46aa5e373b682e26ca23bc048c40 (diff)
downloadmariadb-git-975a23ed0f3eed0f1d7e48743503a652682976ba.tar.gz
Merge mysql.com:/home/gluh/MySQL/Merge/5.0-opt
into mysql.com:/home/gluh/MySQL/Merge/5.1-opt
Diffstat (limited to 'sql/sql_help.cc')
-rw-r--r--sql/sql_help.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_help.cc b/sql/sql_help.cc
index 7b7f7602163..b8a904b0c6e 100644
--- a/sql/sql_help.cc
+++ b/sql/sql_help.cc
@@ -662,6 +662,8 @@ bool mysqld_help(THD *thd, const char *mask)
Init tables and fields to be usable from items
tables do not contain VIEWs => we can pass 0 as conds
*/
+ thd->lex->select_lex.context.table_list=
+ thd->lex->select_lex.context.first_name_resolution_table= &tables[0];
if (setup_tables(thd, &thd->lex->select_lex.context,
&thd->lex->select_lex.top_join_list,
tables, &leaves, FALSE))