~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/subselect.cc

  • Committer: Mark Atwood
  • Date: 2011-06-25 15:38:53 UTC
  • mfrom: (2318.6.78 refactor16)
  • Revision ID: me@mark.atwood.name-20110625153853-za5fjiwd3z0aykdd
mergeĀ lp:~olafvdspek/drizzle/refactor16

Show diffs side-by-side

added added

removed removed

Lines of Context:
730
730
{
731
731
  if (unit_arg->fake_select_lex &&
732
732
      unit_arg->fake_select_lex->test_limit())
733
 
    return(1);
 
733
    return 1;
734
734
 
735
735
  Select_Lex *sl= unit_arg->first_select();
736
736
  for (; sl; sl= sl->next_select())
737
737
  {
738
738
    if (sl->test_limit())
739
 
      return(1);
 
739
      return 1;
740
740
  }
741
741
  return 0;
742
742
}
1390
1390
 
1391
1391
    if (!abort_on_null && left_expr->maybe_null && !pushed_cond_guards)
1392
1392
    {
1393
 
      pushed_cond_guards= (bool*)join->session->mem.alloc(sizeof(bool) * left_expr->cols());
 
1393
      pushed_cond_guards= new (join->session->mem) bool[left_expr->cols()];
1394
1394
      for (uint32_t i= 0; i < cols_num; i++)
1395
1395
        pushed_cond_guards[i]= true;
1396
1396
    }
2162
2162
    save_join_if_explain();
2163
2163
    if (item->engine_changed)
2164
2164
    {
2165
 
      return(1);
 
2165
      return 1;
2166
2166
    }
2167
2167
  }
2168
2168
  if (select_lex->uncacheable.any() &&
2408
2408
      if (top_level)
2409
2409
      {
2410
2410
        /* Partial match on top level */
2411
 
        return(1);
 
2411
        return 1;
2412
2412
      }
2413
2413
      else
2414
2414
      {
2478
2478
 
2479
2479
  /* TODO: change to use of 'full_scan' here? */
2480
2480
  if (copy_ref_key())
2481
 
    return(1);
 
2481
    return 1;
2482
2482
  if (table->status)
2483
2483
  {
2484
2484
    /*
2599
2599
 
2600
2600
  /* Copy the ref key and check for nulls... */
2601
2601
  if (copy_ref_key())
2602
 
    return(1);
 
2602
    return 1;
2603
2603
 
2604
2604
  if (table->status)
2605
2605
  {
3062
3062
  tab->ref.key= 0; /* The only temp table index. */
3063
3063
  tab->ref.key_length= tmp_key->key_length;
3064
3064
  tab->ref.key_buff= (unsigned char*) session->mem.calloc(ALIGN_SIZE(tmp_key->key_length) * 2);
3065
 
  tab->ref.key_copy= (StoredKey**) session->mem.alloc((sizeof(StoredKey*) * (tmp_key_parts + 1)));
3066
 
  tab->ref.items= (Item**) session->mem.alloc(sizeof(Item*) * tmp_key_parts);
 
3065
  tab->ref.key_copy= new (session->mem) StoredKey*[tmp_key_parts + 1];
 
3066
  tab->ref.items= new (session->mem) Item*[tmp_key_parts];
3067
3067
 
3068
3068
  KeyPartInfo *cur_key_part= tmp_key->key_part;
3069
3069
  StoredKey **ref_key= tab->ref.key_copy;