~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/kill.cc

Merge in additional test case fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#include <config.h>
 
21
#include "config.h"
22
22
#include <drizzled/show.h>
23
23
#include <drizzled/session.h>
24
24
#include <drizzled/session/cache.h>
38
38
      getSession()->getLex()->type= ONLY_KILL_QUERY;
39
39
    }
40
40
 
41
 
    getSession()->getLex()->value_list.clear();
 
41
    getSession()->getLex()->value_list.empty();
42
42
    getSession()->getLex()->value_list.push_front(item);
43
43
    getSession()->getLex()->sql_command= SQLCOM_KILL;
44
44
  }
60
60
 
61
61
bool statement::Kill::execute()
62
62
{
63
 
  Item *it= (Item *) getSession()->getLex()->value_list.head();
 
63
  Item *it= (Item *) getSession()->lex->value_list.head();
64
64
 
65
 
  if ((not it->fixed && it->fix_fields(getSession()->getLex()->session, &it)) || it->check_cols(1))
 
65
  if ((not it->fixed && it->fix_fields(getSession()->lex->session, &it)) || it->check_cols(1))
66
66
  {
67
67
    my_message(ER_SET_CONSTANTS_ONLY, 
68
68
               ER(ER_SET_CONSTANTS_ONLY),
70
70
    return true;
71
71
  }
72
72
 
73
 
  if (kill(static_cast<session_id_t>(it->val_int()), getSession()->getLex()->type & ONLY_KILL_QUERY))
 
73
  if (kill(static_cast<session_id_t>(it->val_int()), getSession()->lex->type & ONLY_KILL_QUERY))
74
74
  {
75
75
    getSession()->my_ok();
76
76
  }