~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/ref.cc

  • Committer: Brian Aker
  • Date: 2011-02-21 18:33:47 UTC
  • mto: (2187.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2188.
  • Revision ID: brian@tangent.org-20110221183347-37lw0bf0eizv0gxm
getLex() usage and fix for table_name creation during admin commands.

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
{
114
114
  enum_parsing_place place= NO_MATTER;
115
115
  assert(fixed == 0);
116
 
  Select_Lex *current_sel= session->lex->current_select;
 
116
  Select_Lex *current_sel= session->getLex()->current_select;
117
117
 
118
118
  if (!ref || ref == not_found_item)
119
119
  {
268
268
          goto error;
269
269
        session->change_item_tree(reference, fld);
270
270
        mark_as_dependent(session, last_checked_context->select_lex,
271
 
                          session->lex->current_select, this, fld);
 
271
                          session->getLex()->current_select, this, fld);
272
272
        /*
273
273
          A reference is resolved to a nest level that's outer or the same as
274
274
          the nest level of the enclosing set function : adjust the value of
275
275
          max_arg_level for the function if it's needed.
276
276
        */
277
 
        if (session->lex->in_sum_func &&
278
 
            session->lex->in_sum_func->nest_level >=
 
277
        if (session->getLex()->in_sum_func &&
 
278
            session->getLex()->in_sum_func->nest_level >=
279
279
            last_checked_context->select_lex->nest_level)
280
 
          set_if_bigger(session->lex->in_sum_func->max_arg_level,
 
280
          set_if_bigger(session->getLex()->in_sum_func->max_arg_level,
281
281
                        last_checked_context->select_lex->nest_level);
282
282
        return false;
283
283
      }
297
297
        the nest level of the enclosing set function : adjust the value of
298
298
        max_arg_level for the function if it's needed.
299
299
      */
300
 
      if (session->lex->in_sum_func &&
301
 
          session->lex->in_sum_func->nest_level >=
 
300
      if (session->getLex()->in_sum_func &&
 
301
          session->getLex()->in_sum_func->nest_level >=
302
302
          last_checked_context->select_lex->nest_level)
303
 
        set_if_bigger(session->lex->in_sum_func->max_arg_level,
 
303
        set_if_bigger(session->getLex()->in_sum_func->max_arg_level,
304
304
                      last_checked_context->select_lex->nest_level);
305
305
    }
306
306
  }