~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/subselect.cc

  • Committer: Olaf van der Spek
  • Date: 2011-06-22 20:05:58 UTC
  • mto: This revision was merged to the branch mainline in revision 2347.
  • Revision ID: olafvdspek@gmail.com-20110622200558-oq3jb987di9yj70r
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
353
353
  {
354
354
    /* Always compute IN for the first row as the cache is not valid for it. */
355
355
    if (!first_execution)
356
 
      return(false);
 
356
      return false;
357
357
    first_execution= false;
358
358
  }
359
359
 
1728
1728
  }
1729
1729
err:
1730
1730
  session->setWhere(save_where);
1731
 
  return(res);
 
1731
  return res;
1732
1732
}
1733
1733
 
1734
1734
 
1833
1833
    new_engine->init_runtime();
1834
1834
  }
1835
1835
 
1836
 
  return(res);
 
1836
  return res;
1837
1837
}
1838
1838
 
1839
1839
 
3014
3014
 
3015
3015
  if (tmp_result_sink->create_result_table(session, tmp_columns, true, 
3016
3016
    session->options | TMP_TABLE_ALL_COLUMNS, "materialized subselect"))
3017
 
    return(true);
 
3017
    return true;
3018
3018
 
3019
3019
  tmp_table= tmp_result_sink->table;
3020
3020
  tmp_key= tmp_table->key_info;
3037
3037
    tmp_table= NULL;
3038
3038
    delete result;
3039
3039
    result= NULL;
3040
 
    return(true);
 
3040
    return true;
3041
3041
  }
3042
3042
  result= tmp_result_sink;
3043
3043
 
3090
3090
  tab->ref.key_err= 1;
3091
3091
  tab->ref.key_parts= tmp_key_parts;
3092
3092
 
3093
 
  return(false);
 
3093
  return false;
3094
3094
}
3095
3095
 
3096
3096
 
3196
3196
      empty_result_set= true;
3197
3197
      item_in->value= false;
3198
3198
      /* TODO: check we need this: item_in->null_value= false; */
3199
 
      return(false);
 
3199
      return false;
3200
3200
    }
3201
3201
    /* Set tmp_param only if its usable, i.e. tmp_param->copy_field != NULL. */
3202
3202
    tmp_param= &(item_in->unit->outer_select()->join->tmp_table_param);
3206
3206
err:
3207
3207
    session->lex().current_select= save_select;
3208
3208
    if (res)
3209
 
      return(res);
 
3209
      return res;
3210
3210
  }
3211
3211
 
3212
3212
  /*