~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/include/mix2.inc

  • Committer: Padraig O'Sullivan
  • Date: 2009-09-13 00:53:34 UTC
  • mto: (1126.9.2 captain-20090915-01)
  • mto: This revision was merged to the branch mainline in revision 1133.
  • Revision ID: osullivan.padraig@gmail.com-20090913005334-6wio2sbjugskfbm3
Added calls to the connection start/end dtrace probes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
explain select level,id,parent_id from t1 where level=1;
112
112
select level,id from t1 where level=1;
113
113
select level,id,parent_id from t1 where level=1;
114
 
eval alter table t1 engine=$engine_type;
 
114
optimize table t1;
115
115
--replace_column 7 #
116
 
#show keys from t1;
 
116
show keys from t1;
117
117
drop table t1;
118
118
 
119
119
#
138
138
 
139
139
eval create $temp table t1 (a int) engine=$engine_type;
140
140
insert into t1 values (1), (2);
141
 
eval alter table t1 ENGINE=$engine_type;
 
141
optimize table t1;
142
142
delete from t1 where a = 1;
143
143
select * from t1;
144
144
check table t1;
152
152
insert into t1 values (3,""), (4,"testing");
153
153
analyze table t1;
154
154
--replace_column 7 #
155
 
#show keys from t1;
 
155
show keys from t1;
156
156
drop table t1;
157
157
 
158
158
 
339
339
eval create $temp table t1 (a int not null, b int not null,c int not null,
340
340
key(a),primary key(a,b), unique(c),key(a),unique(b)) ENGINE = $engine_type;
341
341
--replace_column 7 #
342
 
#show index from t1;
 
342
show index from t1;
343
343
drop table t1;
344
344
 
345
345
#
381
381
 
382
382
eval create $temp table t1 (
383
383
  id int NOT NULL auto_increment,
384
 
  ggid varchar(32) DEFAULT '' NOT NULL,
 
384
  ggid varchar(32) binary DEFAULT '' NOT NULL,
385
385
  email varchar(64) DEFAULT '' NOT NULL,
386
 
  passwd varchar(32) DEFAULT '' NOT NULL,
 
386
  passwd varchar(32) binary DEFAULT '' NOT NULL,
387
387
  PRIMARY KEY (id),
388
388
  UNIQUE ggid (ggid)
389
389
) ENGINE=$engine_type;
516
516
eval create $temp table t1 (a varchar(100) not null, primary key(a), b int not null) engine=$engine_type;
517
517
insert into t1 values("hello",1),("world",2);
518
518
select * from t1 order by b desc;
519
 
eval alter table t1 ENGINE=$engine_type;
 
519
optimize table t1;
520
520
--replace_column 7 #
521
 
#show keys from t1;
 
521
show keys from t1;
522
522
drop table t1;
523
523
 
524
524
#
687
687
#
688
688
 
689
689
eval create $temp table t1 (t int not null default 1, key (t)) engine=$engine_type;
690
 
#desc t1;
 
690
desc t1;
691
691
drop table t1;
692
692
 
693
693
#
991
991
insert t4 select * from t1;
992
992
insert t5 select * from t1;
993
993
insert t6 select * from t1;
994
 
checksum table t1, t2, t3, t4, t5, t6, t7;
995
 
checksum table t1, t2, t3, t4, t5, t6, t7;
996
 
checksum table t1, t2, t3, t4, t5, t6, t7;
 
994
checksum table t1, t2, t3, t4, t5, t6, t7 quick;
 
995
checksum table t1, t2, t3, t4, t5, t6, t7;
 
996
checksum table t1, t2, t3, t4, t5, t6, t7 extended;
997
997
# #show table status;
998
998
drop table t1,t2,t3, t4, t5, t6;
999
999
 
1012
1012
# Bug#2160: Extra error message for create $temp table LIKE with InnoDB
1013
1013
#
1014
1014
eval create $temp table t1 (a int) engine=$engine_type;
1015
 
--error 1005
1016
1015
create table t2 like t1;
1017
 
create table t2 like t1 engine=innodb;
1018
1016
show create table t2;
1019
1017
drop table t1,t2;
1020
1018
 
1732
1730
 
1733
1731
eval create $temp table t1 (s1 varbinary(2),primary key (s1)) engine=$engine_type;
1734
1732
eval create $temp table t2 (s1 binary(2),primary key (s1)) engine=$engine_type;
1735
 
eval create $temp table t3 (s1 varchar(2),primary key (s1)) engine=$engine_type;
1736
 
eval create $temp table t4 (s1 char(2),primary key (s1)) engine=$engine_type;
 
1733
eval create $temp table t3 (s1 varchar(2) binary,primary key (s1)) engine=$engine_type;
 
1734
eval create $temp table t4 (s1 char(2) binary,primary key (s1)) engine=$engine_type;
1737
1735
 
1738
1736
insert into t1 values (0x41),(0x4120),(0x4100);
1739
1737
-- error ER_DUP_ENTRY
1788
1786
 
1789
1787
drop table t2,t1;
1790
1788
 
1791
 
eval create $temp table t1 (a int primary key,s1 varchar(2) not null unique) engine=$engine_type;
1792
 
eval create $temp table t2 (s1 char(2) not null, constraint c foreign key(s1) references t1(s1) on update cascade) engine=$engine_type;
 
1789
eval create $temp table t1 (a int primary key,s1 varchar(2) binary not null unique) engine=$engine_type;
 
1790
eval create $temp table t2 (s1 char(2) binary not null, constraint c foreign key(s1) references t1(s1) on update cascade) engine=$engine_type;
1793
1791
 
1794
1792
insert into t1 values(1,0x4100),(2,0x41);
1795
1793
insert into t2 values(0x41);
2212
2210
eval create $temp table t1 ( a int ) ENGINE=$engine_type;
2213
2211
BEGIN;
2214
2212
INSERT INTO t1 VALUES (1);
2215
 
eval ALTER TABLE t1 ENGINE=$engine_type;
 
2213
OPTIMIZE TABLE t1;
2216
2214
DROP TABLE t1;
2217
2215
 
2218
2216
#######################################################################