~posulliv/drizzle/optimizer-style-cleanup

« back to all changes in this revision

Viewing changes to plugin/logging_stats/tests/t/cumulative.test

  • Committer: Padraig O'Sullivan
  • Date: 2010-04-17 01:38:47 UTC
  • mfrom: (1237.9.238 bad-staging)
  • Revision ID: osullivan.padraig@gmail.com-20100417013847-ibjioqsfbmf5yg4g
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
connect (con1, localhost, drizzle,,);
 
3
connection con1;
 
4
--disable_warnings
 
5
DROP TABLE IF EXISTS a;
 
6
--enable_warnings
 
7
CREATE TABLE a (i int,  PRIMARY KEY (i));
 
8
INSERT INTO a VALUES (1);
 
9
disconnect con1;
 
10
 
 
11
 
 
12
connect (con2, localhost, drizzle,,);
 
13
connection con2;
 
14
INSERT INTO a VALUES (2);
 
15
disconnect con2;
 
16
 
 
17
 
 
18
connect (con3, localhost, drizzle_test,,);
 
19
connection con3;
 
20
INSERT INTO a VALUES (3);
 
21
disconnect con3;
 
22
 
 
23
connection default;
 
24
 
 
25
# The statistics are incremented after the statements have already returned
 
26
# so its possible a query could be missed if we do not wait
 
27
--sleep 1 
 
28
SELECT * FROM DATA_DICTIONARY.CUMULATIVE_SQL_COMMANDS;
 
29
 
 
30
DROP TABLE a;