~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/utility_functions/tests/r/kill_repeated.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
CREATE TABLE CONNECTIONS SELECT ID FROM DATA_DICTIONARY.PROCESSLIST WHERE ID != CONNECTION_ID();
 
2
INSERT INTO CONNECTIONS SELECT ID FROM DATA_DICTIONARY.PROCESSLIST WHERE ID != CONNECTION_ID();
 
3
SELECT IF (KILL(id), "YES", "NO") FROM CONNECTIONS ORDER BY RAND();
 
4
IF (KILL(id), "YES", "NO")
 
5
YES
 
6
YES
 
7
YES
 
8
YES
 
9
YES
 
10
YES
 
11
YES
 
12
YES
 
13
YES
 
14
YES
 
15
SELECT count(ID) FROM DATA_DICTIONARY.PROCESSLIST WHERE COMMAND != "Killed";
 
16
count(ID)
 
17
1