~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/name_resolution_context.h

  • Committer: Olaf van der Spek
  • Date: 2011-07-04 19:11:47 UTC
  • mto: This revision was merged to the branch mainline in revision 2367.
  • Revision ID: olafvdspek@gmail.com-20110704191147-s99ojek811zi1fzj
RemoveĀ unusedĀ Name_resolution_context::error_reporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 * structure before and after INSERT/CREATE and its SELECT to make correct
41
41
 * field name resolution.
42
42
 */
43
 
class Name_resolution_context: public memory::SqlAlloc
 
43
class Name_resolution_context : public memory::SqlAlloc
44
44
{
45
45
public:
46
46
  /**
80
80
  Select_Lex *select_lex;
81
81
 
82
82
  /**
83
 
   * Processor of errors caused during Item name resolving, now used only to
84
 
   * hide underlying tables in errors about views (i.e. it substitute some
85
 
   * errors for views)
86
 
   */
87
 
  void (*error_processor)(Session *, void *);
88
 
  void *error_processor_data;
89
 
 
90
 
  /**
91
83
   * When true items are resolved in this context both against the
92
84
   * SELECT list and this->table_list. If false, items are resolved
93
85
   * only against this->table_list.
105
97
      outer_context(0), 
106
98
      table_list(0), 
107
99
      select_lex(0),
108
 
      error_processor_data(0),
109
100
      security_ctx(0)
110
 
    {}
 
101
  {
 
102
  }
111
103
 
112
104
  inline void init()
113
105
  {
114
106
    resolve_in_select_list= false;
115
 
    error_processor= &dummy_error_processor;
116
107
    first_name_resolution_table= NULL;
117
108
    last_name_resolution_table= NULL;
118
109
  }
122
113
    table_list= first_name_resolution_table= tables;
123
114
    resolve_in_select_list= false;
124
115
  }
125
 
 
126
 
  inline void process_error(Session *session)
127
 
  {
128
 
    (*error_processor)(session, error_processor_data);
129
 
  }
130
116
};
131
117
 
132
118
} /* namespace drizzled */