~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/status.test

  • Committer: Brian Aker
  • Date: 2009-07-12 00:49:18 UTC
  • mfrom: (1063.9.51 brian-tmp-fix)
  • Revision ID: brian@gaz-20090712004918-chprmyj387ex6l8a
Merge Stewart

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
select 1;
18
18
show status like 'last_query_cost';
19
 
create table t1 (a int) engine=myisam;
 
19
create temporary table t1 (a int) engine=myisam;
20
20
insert into t1 values (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
21
21
insert into t1 values (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
22
22
insert into t1 values (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
91
91
# Bug #30377: EXPLAIN loses last_query_cost when used with UNION
92
92
#
93
93
 
94
 
CREATE TABLE t1 ( a INT ) ENGINE=MyISAM;
 
94
CREATE TABLE t1 ( a INT );
95
95
INSERT INTO t1 VALUES (1), (2);
96
96
 
97
97
SELECT a FROM t1 LIMIT 1;
98
98
SHOW SESSION STATUS LIKE 'Last_query_cost';
99
99
 
 
100
--replace_column 9 #
100
101
EXPLAIN SELECT a FROM t1;
101
102
SHOW SESSION STATUS LIKE 'Last_query_cost';
102
103
 
103
104
SELECT a FROM t1 UNION SELECT a FROM t1 ORDER BY a;
104
105
SHOW SESSION STATUS LIKE 'Last_query_cost';
105
106
 
 
107
--replace_column 9 #
106
108
EXPLAIN SELECT a FROM t1 UNION SELECT a FROM t1 ORDER BY a;
107
109
SHOW SESSION STATUS LIKE 'Last_query_cost';
108
110