~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/utility_functions/tests/t/kill.test

  • Committer: Brian Aker
  • Date: 2011-01-23 21:09:42 UTC
  • Revision ID: brian@tangent.org-20110123210942-g6hiv6vatn75ht9r
Additional fix for lcov.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
connect (con4,localhost,bob,,);
6
6
connect (con5,localhost,bob,,);
7
7
 
 
8
connection con1;
 
9
connection con2;
 
10
connection con3;
 
11
connection con4;
 
12
connection con5;
 
13
 
8
14
connection default;
9
 
SELECT COUNT(ID) FROM DATA_DICTIONARY.PROCESSLIST ORDER BY ID;
 
15
SELECT COUNT(ID) FROM DATA_DICTIONARY.PROCESSLIST WHERE ID != CONNECTION_ID() AND USERNAME="bob" ORDER BY ID;
10
16
SELECT IF(KILL(id), "YES", "NO") FROM DATA_DICTIONARY.PROCESSLIST WHERE ID != CONNECTION_ID() AND USERNAME="bob";
11
 
SELECT count(ID) FROM DATA_DICTIONARY.PROCESSLIST WHERE COMMAND != "Killed";
 
17
SELECT count(ID) FROM DATA_DICTIONARY.PROCESSLIST WHERE COMMAND != "Killed" AND USERNAME="bob" and ID != CONNECTION_ID();
12
18
--error 1713
13
19
SELECT KILL(CONNECTION_ID());