~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

  • Committer: Olaf van der Spek
  • Date: 2011-06-05 23:06:29 UTC
  • mto: (2318.2.9 rf)
  • mto: This revision was merged to the branch mainline in revision 2333.
  • Revision ID: olafvdspek@gmail.com-20110605230629-1vkcgvum80gythbk
Refactor

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);