~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/status.result

  • Committer: Stewart Smith
  • Date: 2010-11-03 03:27:09 UTC
  • mto: (1902.1.1 build) (1910.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1903.
  • Revision ID: stewart@flamingspork.com-20101103032709-oyvfrc6eb8fzj0mr
fix docs warning: docs/unlock.rst:2: (WARNING/2) Title underline too short.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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.399
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.399
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
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
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
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
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.799
95
95
DROP TABLE t1;