~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/kill.cc

  • Committer: Brian Aker
  • Date: 2011-01-25 07:24:41 UTC
  • mfrom: (2104.3.14 alter-table)
  • Revision ID: brian@tangent.org-20110125072441-gf9f14lkxjhvvku9
MergeĀ inĀ alter/parser

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
namespace drizzled
28
28
{
29
29
 
 
30
namespace statement
 
31
{
 
32
 
 
33
Kill::Kill(Session *in_session, Item *item, bool is_query_kill) :
 
34
  Statement(in_session)
 
35
  {
 
36
    if (is_query_kill)
 
37
    {
 
38
      getSession()->getLex()->type= ONLY_KILL_QUERY;
 
39
    }
 
40
 
 
41
    getSession()->getLex()->value_list.empty();
 
42
    getSession()->getLex()->value_list.push_front(item);
 
43
    getSession()->getLex()->sql_command= SQLCOM_KILL;
 
44
  }
 
45
 
 
46
} // namespace statement
 
47
 
30
48
bool statement::Kill::kill(session_id_t id, bool only_kill_query)
31
49
{
32
50
  drizzled::Session::shared_ptr session_param= session::Cache::singleton().find(id);