~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/subselect3.result

  • Committer: Monty Taylor
  • Date: 2009-09-16 18:18:47 UTC
  • mto: (1128.1.1 captain-20090921-01)
  • mto: This revision was merged to the branch mainline in revision 1132.
  • Revision ID: mordred@inaugust.com-20090916181847-2qqbr62u1bjc8otr
Removed unused dtrace.m4 file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
0
60
60
show status like 'Handler_read_rnd_next';
61
61
Variable_name   Value
62
 
Handler_read_rnd_next   #
 
62
Handler_read_rnd_next   11
63
63
select ' ^ This must show 11' Z;
64
64
Z
65
65
 ^ This must show 11
99
99
1       1
100
100
show status like '%Handler_read_rnd_next';
101
101
Variable_name   Value
102
 
Handler_read_rnd_next   #
 
102
Handler_read_rnd_next   5
103
103
delete from t2;
104
104
insert into t2 values (NULL, 0),(NULL, 0), (NULL, 0), (NULL, 0);
105
105
flush status;
111
111
0       NULL    0
112
112
show status like '%Handler_read%';
113
113
Variable_name   Value
114
 
Handler_read_first      #
115
 
Handler_read_key        #
116
 
Handler_read_next       #
117
 
Handler_read_prev       #
118
 
Handler_read_rnd        #
119
 
Handler_read_rnd_next   #
 
114
Handler_read_first      5
 
115
Handler_read_key        10
 
116
Handler_read_next       0
 
117
Handler_read_prev       0
 
118
Handler_read_rnd        0
 
119
Handler_read_rnd_next   29
120
120
select 'No key lookups, seq reads: 29= 5 reads from t2 + 4 * 6 reads from t1.' Z;
121
121
Z
122
122
No key lookups, seq reads: 29= 5 reads from t2 + 4 * 6 reads from t1.
247
247
NULL    1       100     0
248
248
NULL    2       100     NULL
249
249
create table t4 (x int);
250
 
insert into t4 select A.a + 10*B.a from t1 A CROSS JOIN t1 B;
 
250
insert into t4 select A.a + 10*B.a from t1 A, t1 B;
251
251
explain extended 
252
252
select a,b, oref, 
253
253
(a,b) in (select a,b from t1,t4 where c=t2.oref) Z 
772
772
DROP TABLE t1, t2;
773
773
create table t1 (a int, b decimal(13, 3));
774
774
insert into t1 values (1, 0.123);
775
 
select a, (select max(b) from t1) into outfile "DRIZZLETEST_VARDIR/subselect.out.file.1" from t1;
 
775
select a, (select max(b) from t1) into outfile "subselect.out.file.1" from t1;
776
776
delete from t1;
777
 
load data infile "DRIZZLETEST_VARDIR/subselect.out.file.1" into table t1;
 
777
load data infile "subselect.out.file.1" into table t1;
778
778
select * from t1;
779
779
a       b
780
780
1       0.123