~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

  • Committer: Brian Aker
  • Date: 2009-02-18 19:27:32 UTC
  • mfrom: (873.1.17 temporal-new)
  • Revision ID: brian@tangent.org-20090218192732-ype4iscybtftjk2y
Merge Jay

Show diffs side-by-side

added added

removed removed

Lines of Context:
2035
2035
{
2036
2036
  LEX   *lex= session->lex;
2037
2037
  select_result *result=lex->result;
2038
 
  bool res;
 
2038
  bool res= false;
2039
2039
  /* assign global limit variable if limit is not given */
2040
2040
  {
2041
2041
    Select_Lex *param= lex->unit.global_parameters;
2054
2054
        even if the query itself redirects the output.
2055
2055
      */
2056
2056
      if (!(result= new select_send()))
2057
 
        return 1;                               /* purecov: inspected */
 
2057
        return true;                               /* purecov: inspected */
2058
2058
      session->send_explain_fields(result);
2059
2059
      res= mysql_explain_union(session, &session->lex->unit, result);
2060
2060
      if (lex->describe & DESCRIBE_EXTENDED)
2076
2076
    else
2077
2077
    {
2078
2078
      if (!result && !(result= new select_send()))
2079
 
        return 1;                               /* purecov: inspected */
 
2079
        return true;                               /* purecov: inspected */
2080
2080
      res= handle_select(session, lex, result, 0);
2081
2081
      if (result != lex->result)
2082
2082
        delete result;