~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/status.test

  • Committer: Padraig O'Sullivan
  • Date: 2009-09-17 00:08:20 UTC
  • mto: (1126.9.3 captain-20090915-01)
  • mto: This revision was merged to the branch mainline in revision 1133.
  • Revision ID: osullivan.padraig@gmail.com-20090917000820-urd6p46qngi1okjp
Updated calls to some dtrace probes to cast the parameter to const char *
appropriately. Also, removed the additional variable in places that I was
using.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
 
17
17
select 1;
18
 
--replace_column 2 #
19
18
show status like 'last_query_cost';
20
19
create temporary table t1 (a int) engine=myisam;
21
20
insert into t1 values (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
24
23
insert into t1 values (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
25
24
insert into t1 values (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
26
25
select * from t1 where a=6;
27
 
--replace_column 2 #
28
26
show status like 'last_query_cost';
29
27
# Ensure value dosn't change by second status call
30
 
--replace_column 2 #
31
28
show status like 'last_query_cost';
32
29
select 1;
33
 
--replace_column 2 #
34
30
show status like 'last_query_cost';
35
31
drop table t1;
36
32
 
63
59
let $wait_left= `SELECT @wait_left`;
64
60
while ($max_used != 1 && $wait_left > 0)
65
61
{
 
62
  sleep 1;
66
63
  FLUSH STATUS;
67
64
  SET @wait_left = @wait_left - 1;
68
65
  let $max_used_connections = `SHOW STATUS LIKE 'max_used_connections'`;
75
72
 
76
73
# Prerequisite.
77
74
SHOW STATUS LIKE 'max_used_connections';
78
 
SELECT * FROM data_dictionary.SESSION_STATUS WHERE VARIABLE_NAME LIKE 'max_used_connections';
 
75
SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME LIKE 'max_used_connections';
79
76
 
80
77
# Save original setting.
81
78
connect (con1,localhost,root,,);
88
85
 
89
86
# Check that max_used_connections still reflects maximum value.
90
87
SHOW STATUS LIKE 'max_used_connections';
91
 
SELECT * FROM data_dictionary.SESSION_STATUS WHERE VARIABLE_NAME LIKE 'max_used_connections';
 
88
SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME LIKE 'max_used_connections';
92
89
 
93
90
#
94
91
# Bug #30377: EXPLAIN loses last_query_cost when used with UNION