~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.cc

Merge in trunk to catalogs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3942
3942
 
3943
3943
bool drizzle_rm_tmp_tables()
3944
3944
{
3945
 
  Session *session;
3946
3945
 
3947
3946
  assert(drizzle_tmpdir.size());
 
3947
  Session::shared_ptr session= Session::make_shared(plugin::Listen::getNullClient(), catalog::local());
3948
3948
 
3949
 
  if (!(session= new Session(plugin::Listen::getNullClient())))
 
3949
  if (not session)
3950
3950
    return true;
3951
 
  session->thread_stack= (char*) &session;
 
3951
  session->thread_stack= (char*) session.get();
3952
3952
  session->storeGlobals();
3953
3953
 
3954
3954
  plugin::StorageEngine::removeLostTemporaryTables(*session, drizzle_tmpdir.c_str());
3955
3955
 
3956
 
  delete session;
3957
 
 
3958
3956
  return false;
3959
3957
}
3960
3958