~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

  • Committer: Mark Atwood
  • Date: 2011-06-14 06:10:57 UTC
  • mfrom: (2318.2.19 rf)
  • Revision ID: me@mark.atwood.name-20110614061057-u08az4cidd4l7blm
mergeĀ lp:~olafvdspek/drizzle/refactor4

Show diffs side-by-side

added added

removed removed

Lines of Context:
576
576
        to prepend EXPLAIN to any query and receive output for it,
577
577
        even if the query itself redirects the output.
578
578
      */
579
 
      if (!(result= new select_send()))
580
 
        return true;
 
579
      result= new select_send();
581
580
      session->send_explain_fields(result);
582
581
      optimizer::ExplainPlan planner;
583
582
      res= planner.explainUnion(session, &session->lex().unit, result);
600
599
    }
601
600
    else
602
601
    {
603
 
      if (!result && !(result= new select_send()))
604
 
        return true;
 
602
      if (not result)
 
603
        result= new select_send();
605
604
 
606
605
      /* Init the Query Cache plugin */
607
606
      plugin::QueryCache::prepareResultset(session);