diff options
author | unknown <dlenev@mockturtle.local> | 2007-01-25 11:26:18 +0300 |
---|---|---|
committer | unknown <dlenev@mockturtle.local> | 2007-01-25 11:26:18 +0300 |
commit | ea41474bf8c3051255dd0bf6ce72f4520b548976 (patch) | |
tree | a9038c4d89946a63e299eb1cee1edf1110bb56a2 /sql/item.h | |
parent | 2ed7eaf56424485e475ef7f1c430b1881ac02fc2 (diff) | |
parent | 259a4658228b347fe9e7bd3949e59cd3e6a08140 (diff) | |
download | mariadb-git-ea41474bf8c3051255dd0bf6ce72f4520b548976.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mockturtle.local:/home/dlenev/src/mysql-5.0-merge
Diffstat (limited to 'sql/item.h')
-rw-r--r-- | sql/item.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sql/item.h b/sql/item.h index 13f0b95c1d1..c7c1218d3e9 100644 --- a/sql/item.h +++ b/sql/item.h @@ -336,23 +336,18 @@ public: { save_table_list= context->table_list; save_first_name_resolution_table= context->first_name_resolution_table; - save_next_name_resolution_table= (context->first_name_resolution_table) ? - context->first_name_resolution_table-> - next_name_resolution_table : - NULL; save_resolve_in_select_list= context->resolve_in_select_list; save_next_local= table_list->next_local; + save_next_name_resolution_table= table_list->next_name_resolution_table; } /* Restore a name resolution context from saved state. */ void restore_state(Name_resolution_context *context, TABLE_LIST *table_list) { table_list->next_local= save_next_local; + table_list->next_name_resolution_table= save_next_name_resolution_table; context->table_list= save_table_list; context->first_name_resolution_table= save_first_name_resolution_table; - if (context->first_name_resolution_table) - context->first_name_resolution_table-> - next_name_resolution_table= save_next_name_resolution_table; context->resolve_in_select_list= save_resolve_in_select_list; } }; |