~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.cc

  • Committer: Brian Aker
  • Date: 2010-10-09 00:49:33 UTC
  • mfrom: (1812.5.8 staging)
  • Revision ID: brian@tangent.org-20101009004933-tehugnkubtzp6uy4
Merge in changes for show create table.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1902
1902
    close_tables_for_reopen(&tables);
1903
1903
  }
1904
1904
  if ((mysql_handle_derived(lex, &mysql_derived_prepare) ||
1905
 
       (fill_derived_tables() &&
 
1905
       (
1906
1906
        mysql_handle_derived(lex, &mysql_derived_filling))))
1907
1907
    return true;
1908
1908
 
1909
1909
  return false;
1910
1910
}
1911
1911
 
1912
 
bool Session::openTables(TableList *tables, uint32_t flags)
1913
 
{
1914
 
  uint32_t counter;
1915
 
  bool ret= fill_derived_tables();
1916
 
  assert(ret == false);
1917
 
  if (open_tables_from_list(&tables, &counter, flags) ||
1918
 
      mysql_handle_derived(lex, &mysql_derived_prepare))
1919
 
  {
1920
 
    return true;
1921
 
  }
1922
 
  return false;
1923
 
}
1924
 
 
1925
1912
/*
1926
1913
  @note "best_effort" is used in cases were if a failure occurred on this
1927
1914
  operation it would not be surprising because we are only removing because there