~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-24 15:25:06 UTC
  • mto: This revision was merged to the branch mainline in revision 2349.
  • Revision ID: olafvdspek@gmail.com-20110624152506-zivk37gp51e9w84u
Refactor

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
}
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
  {