~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/name_resolution_context_state.cc

  • Committer: Olaf van der Spek
  • Date: 2011-08-12 16:41:20 UTC
  • mto: This revision was merged to the branch mainline in revision 2398.
  • Revision ID: olafvdspek@gmail.com-20110812164120-uu21idtt9a9sa92e
cppcheck

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include <drizzled/name_resolution_context_state.h>
24
24
#include <drizzled/table_list.h>
25
25
 
26
 
namespace drizzled
27
 
{
 
26
namespace drizzled {
28
27
 
29
 
void
30
 
Name_resolution_context_state::save_state(Name_resolution_context *context,
31
 
                                          TableList *table_list)
 
28
void Name_resolution_context_state::save_state(Name_resolution_context *context, TableList *table_list)
32
29
{
33
30
  save_table_list=                  context->table_list;
34
31
  save_first_name_resolution_table= context->first_name_resolution_table;
37
34
  save_next_name_resolution_table=  table_list->next_name_resolution_table;
38
35
}
39
36
 
40
 
void
41
 
Name_resolution_context_state::restore_state(Name_resolution_context *context,
42
 
                                             TableList *table_list)
 
37
void Name_resolution_context_state::restore_state(Name_resolution_context *context, TableList *table_list) const
43
38
{
44
39
  table_list->next_local=                save_next_local;
45
40
  table_list->next_name_resolution_table= save_next_name_resolution_table;
48
43
  context->resolve_in_select_list=       save_resolve_in_select_list;
49
44
}
50
45
 
51
 
 
52
46
TableList *Name_resolution_context_state::get_first_name_resolution_table()
53
47
{
54
48
  return save_first_name_resolution_table;