~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field_iterator.cc

  • Committer: Brian Aker
  • Date: 2008-10-20 04:28:21 UTC
  • mto: (492.3.21 drizzle-clean-code)
  • mto: This revision was merged to the branch mainline in revision 530.
  • Revision ID: brian@tangent.org-20081020042821-rqqdrccuu8195k3y
Second pass of thd cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
}
21
21
 
22
22
 
23
 
Item *Field_iterator_table::create_item(Session *thd)
 
23
Item *Field_iterator_table::create_item(Session *session)
24
24
{
25
 
  SELECT_LEX *select= thd->lex->current_select;
 
25
  SELECT_LEX *select= session->lex->current_select;
26
26
 
27
 
  Item_field *item= new Item_field(thd, &select->context, *ptr);
 
27
  Item_field *item= new Item_field(session, &select->context, *ptr);
28
28
 
29
29
#ifdef DEAD_CODE
30
30
 
31
 
  if (item && thd->variables.sql_mode & MODE_ONLY_FULL_GROUP_BY &&
32
 
      !thd->lex->in_sum_func && select->cur_pos_in_select_list != UNDEF_POS)
 
31
  if (item && session->variables.sql_mode & MODE_ONLY_FULL_GROUP_BY &&
 
32
      !session->lex->in_sum_func && select->cur_pos_in_select_list != UNDEF_POS)
33
33
  {
34
34
    select->non_agg_fields.push_back(item);
35
35
    item->marker= select->cur_pos_in_select_list;