~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/status.result

  • 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:
5
5
1
6
6
show status like 'last_query_cost';
7
7
Variable_name   Value
8
 
Last_query_cost #
 
8
Last_query_cost 0.000000
9
9
create temporary table t1 (a int) engine=myisam;
10
10
insert into t1 values (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
11
11
insert into t1 values (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
21
21
6
22
22
show status like 'last_query_cost';
23
23
Variable_name   Value
24
 
Last_query_cost #
 
24
Last_query_cost 12.084449
25
25
show status like 'last_query_cost';
26
26
Variable_name   Value
27
 
Last_query_cost #
 
27
Last_query_cost 12.084449
28
28
select 1;
29
29
1
30
30
1
31
31
show status like 'last_query_cost';
32
32
Variable_name   Value
33
 
Last_query_cost #
 
33
Last_query_cost 0.000000
34
34
drop table t1;
35
35
FLUSH STATUS;
36
36
SHOW STATUS LIKE 'max_used_connections';
37
37
Variable_name   Value
38
38
Max_used_connections    1
39
 
SELECT * FROM data_dictionary.SESSION_STATUS WHERE VARIABLE_NAME LIKE 'max_used_connections';
 
39
SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME LIKE 'max_used_connections';
40
40
VARIABLE_NAME   VARIABLE_VALUE
41
 
Max_used_connections    1
 
41
MAX_USED_CONNECTIONS    1
42
42
SHOW STATUS LIKE 'max_used_connections';
43
43
Variable_name   Value
44
44
Max_used_connections    3
45
 
SELECT * FROM data_dictionary.SESSION_STATUS WHERE VARIABLE_NAME LIKE 'max_used_connections';
 
45
SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME LIKE 'max_used_connections';
46
46
VARIABLE_NAME   VARIABLE_VALUE
47
 
Max_used_connections    3
 
47
MAX_USED_CONNECTIONS    3
48
48
CREATE TABLE t1 ( a INT );
49
49
INSERT INTO t1 VALUES (1), (2);
50
50
SELECT a FROM t1 LIMIT 1;
52
52
1
53
53
SHOW SESSION STATUS LIKE 'Last_query_cost';
54
54
Variable_name   Value
55
 
Last_query_cost 21.999
 
55
Last_query_cost 1.399000
56
56
EXPLAIN SELECT a FROM t1;
57
57
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
58
58
1       SIMPLE  t1      ALL     NULL    NULL    NULL    NULL    #       
59
59
SHOW SESSION STATUS LIKE 'Last_query_cost';
60
60
Variable_name   Value
61
 
Last_query_cost 21.999
 
61
Last_query_cost 1.399000
62
62
SELECT a FROM t1 UNION SELECT a FROM t1 ORDER BY a;
63
63
a
64
64
1
65
65
2
66
66
SHOW SESSION STATUS LIKE 'Last_query_cost';
67
67
Variable_name   Value
68
 
Last_query_cost 21.999
 
68
Last_query_cost 0.000000
69
69
EXPLAIN SELECT a FROM t1 UNION SELECT a FROM t1 ORDER BY a;
70
70
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
71
71
1       PRIMARY t1      ALL     NULL    NULL    NULL    NULL    #       
73
73
NULL    UNION RESULT    <union1,2>      ALL     NULL    NULL    NULL    NULL    #       Using filesort
74
74
SHOW SESSION STATUS LIKE 'Last_query_cost';
75
75
Variable_name   Value
76
 
Last_query_cost 21.999
 
76
Last_query_cost 0.000000
77
77
SELECT a IN (SELECT a FROM t1) FROM t1 LIMIT 1;
78
78
a IN (SELECT a FROM t1)
79
79
1
80
80
SHOW SESSION STATUS LIKE 'Last_query_cost';
81
81
Variable_name   Value
82
 
Last_query_cost 21.999
 
82
Last_query_cost 0.000000
83
83
SELECT (SELECT a FROM t1 LIMIT 1) x FROM t1 LIMIT 1;
84
84
x
85
85
1
86
86
SHOW SESSION STATUS LIKE 'Last_query_cost';
87
87
Variable_name   Value
88
 
Last_query_cost 21.999
 
88
Last_query_cost 0.000000
89
89
SELECT * FROM t1 a, t1 b LIMIT 1;
90
90
a       a
91
91
1       1
92
92
SHOW SESSION STATUS LIKE 'Last_query_cost';
93
93
Variable_name   Value
94
 
Last_query_cost 21.999
 
94
Last_query_cost 2.799000
95
95
DROP TABLE t1;