~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.cc

  • Committer: Brian Aker
  • Date: 2011-01-12 02:29:00 UTC
  • mfrom: (2068.7.5 session-fix)
  • mto: This revision was merged to the branch mainline in revision 2077.
  • Revision ID: brian@gir-3-20110112022900-ash0in3luysxzpvl
MergeĀ inĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1975
1975
 
1976
1976
bool Open_tables_state::rm_temporary_table(const TableIdentifier &identifier, bool best_effort)
1977
1977
{
1978
 
  if (plugin::StorageEngine::dropTable(*static_cast<Session *>(this), identifier))
 
1978
  if (not plugin::StorageEngine::dropTable(*static_cast<Session *>(this), identifier))
1979
1979
  {
1980
1980
    if (not best_effort)
1981
1981
    {
1993
1993
 
1994
1994
bool Open_tables_state::rm_temporary_table(plugin::StorageEngine *base, const TableIdentifier &identifier)
1995
1995
{
 
1996
  drizzled::error_t error;
1996
1997
  assert(base);
1997
1998
 
1998
 
  if (plugin::StorageEngine::dropTable(*static_cast<Session *>(this), *base, identifier))
 
1999
  if (not plugin::StorageEngine::dropTable(*static_cast<Session *>(this), *base, identifier, error))
1999
2000
  {
2000
2001
    std::string path;
2001
2002
    identifier.getSQLPath(path);
2002
2003
    errmsg_printf(ERRMSG_LVL_WARN, _("Could not remove temporary table: '%s', error: %d"),
2003
 
                  path.c_str(), errno);
 
2004
                  path.c_str(), error);
2004
2005
 
2005
2006
    return true;
2006
2007
  }