~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/utility_functions/tests/r/kill.result

  • Committer: Brian Aker
  • Date: 2010-11-29 23:45:28 UTC
  • mto: (1965.2.2 build)
  • mto: This revision was merged to the branch mainline in revision 1966.
  • Revision ID: brian@tangent.org-20101129234528-3i1cmr6jkeeduh9c
Fixing up the kill function.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
SELECT COUNT(ID) FROM DATA_DICTIONARY.PROCESSLIST ORDER BY ID;
 
2
COUNT(ID)
 
3
6
 
4
SELECT IF(KILL(id), "YES", "NO") FROM DATA_DICTIONARY.PROCESSLIST WHERE ID != CONNECTION_ID();
 
5
IF(KILL(id), "YES", "NO")
 
6
YES
 
7
YES
 
8
YES
 
9
YES
 
10
YES
 
11
SELECT count(ID) FROM DATA_DICTIONARY.PROCESSLIST WHERE COMMAND != "Killed";
 
12
count(ID)
 
13
1
 
14
SELECT KILL(CONNECTION_ID());
 
15
ERROR HY000: You cannot kill the session you are connected from.