~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/field.cc

  • Committer: Brian Aker
  • Date: 2009-02-07 22:02:41 UTC
  • Revision ID: brian@tangent.org-20090207220241-ez3828o1246ab2sp
Removing on typedeffed class.

Show diffs side-by-side

added added

removed removed

Lines of Context:
169
169
   field(0), result_field(0), item_equal(0), no_const_subst(0),
170
170
   have_privileges(0), any_privileges(0)
171
171
{
172
 
  SELECT_LEX *select= current_session->lex->current_select;
 
172
  Select_Lex *select= current_session->lex->current_select;
173
173
  collation.set(DERIVATION_IMPLICIT);
174
174
  if (select && select->parsing_place != IN_HAVING)
175
175
      select->select_n_where_fields++;
402
402
}
403
403
 
404
404
 
405
 
void Item_field::fix_after_pullout(st_select_lex *new_parent, Item **)
 
405
void Item_field::fix_after_pullout(Select_Lex *new_parent, Item **)
406
406
{
407
407
  if (new_parent == depended_from)
408
408
    depended_from= NULL;
493
493
  */
494
494
  Name_resolution_context *last_checked_context= context;
495
495
  Item **ref= (Item **) not_found_item;
496
 
  SELECT_LEX *current_sel= (SELECT_LEX *) session->lex->current_select;
 
496
  Select_Lex *current_sel= (Select_Lex *) session->lex->current_select;
497
497
  Name_resolution_context *outer_context= 0;
498
 
  SELECT_LEX *select= 0;
 
498
  Select_Lex *select= 0;
499
499
  /* Currently derived tables cannot be correlated */
500
500
  if (current_sel->master_unit()->first_select()->linkage !=
501
501
      DERIVED_TABLE_TYPE)
1244
1244
 
1245
1245
Item *Item_field::update_value_transformer(unsigned char *select_arg)
1246
1246
{
1247
 
  SELECT_LEX *select= (SELECT_LEX*)select_arg;
 
1247
  Select_Lex *select= (Select_Lex*)select_arg;
1248
1248
  assert(fixed);
1249
1249
 
1250
1250
  if (field->table != select->context.table_list->table)