~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/innodb.test

  • Committer: Padraig O'Sullivan
  • Date: 2009-09-13 01:03:01 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-20090913010301-tcvvezipx1124acy
Added calls to the dtrace delete begin/end probes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
explain select level,id,parent_id from t1 where level=1;
68
68
select level,id from t1 where level=1;
69
69
select level,id,parent_id from t1 where level=1;
70
 
alter table t1 ENGINE=innodb;
 
70
optimize table t1;
71
71
--replace_column 7 #
72
72
show keys from t1;
73
73
drop table t1;
94
94
 
95
95
create table t1 (a int) engine=innodb;
96
96
insert into t1 values (1), (2);
97
 
alter table t1 engine=innodb;
 
97
optimize table t1;
98
98
delete from t1 where a = 1;
99
99
select * from t1;
100
100
check table t1;
161
161
select n from t1;
162
162
-- error 1305
163
163
rollback to savepoint `my_savepoint`;
 
164
--error 1305
164
165
rollback to savepoint savept2;
165
166
insert into t1 values (8);
166
167
savepoint sv;
429
430
create table t1 (a varchar(100) not null, primary key(a), b int not null) engine=innodb;
430
431
insert into t1 values("hello",1),("world",2);
431
432
select * from t1 order by b desc;
432
 
alter table t1 engine=innodb;
 
433
optimize table t1;
433
434
--replace_column 7 #
434
435
show keys from t1;
435
436
drop table t1;
532
533
insert into mysqltest.t1 values(1);
533
534
create TEMPORARY table mysqltest.t2 (a int not null) engine= myisam;
534
535
insert into mysqltest.t2 values(1);
535
 
create temporary table mysqltest.t3 (a int not null) engine= MEMORY;
 
536
create temporary table mysqltest.t3 (a int not null) engine= heap;
536
537
insert into mysqltest.t3 values(1);
537
538
commit;
538
539
drop database mysqltest;
834
835
insert t1 values (1, "aaa", "bbb"), (NULL, "", "ccccc"), (0, NULL, "");
835
836
insert t2 select * from t1;
836
837
insert t3 select * from t1;
837
 
checksum table t1, t2, t3, t4;
838
 
checksum table t1, t2, t3, t4;
839
 
checksum table t1, t2, t3, t4;
840
 
--replace_column 1 #  6 # 7 # 8 # 9 # 10 #
 
838
checksum table t1, t2, t3, t4 quick;
 
839
checksum table t1, t2, t3, t4;
 
840
checksum table t1, t2, t3, t4 extended;
 
841
#show table status;
841
842
drop table t1,t2,t3;
842
843
 
843
844
#
1028
1029
## Not deterministic.
1029
1030
# Test for testable InnoDB status variables. This test
1030
1031
# uses previous ones(pages_created, rows_deleted, ...).
1031
 
--replace_column 2 #
1032
 
show status like "Innodb_buffer_pool_pages_total";
1033
 
--replace_column 2 #
1034
 
show status like "Innodb_page_size";
1035
 
--replace_column 2 #
1036
 
show status like "Innodb_rows_deleted";
1037
 
--replace_column 2 #
1038
 
show status like "Innodb_rows_inserted";
1039
 
--replace_column 2 #
1040
 
show status like "Innodb_rows_updated";
 
1032
#show status like "Innodb_buffer_pool_pages_total";
 
1033
#show status like "Innodb_page_size";
 
1034
#show status like "Innodb_rows_deleted";
 
1035
#show status like "Innodb_rows_inserted";
 
1036
#show status like "Innodb_rows_updated";
1041
1037
 
1042
1038
## Test for row locks InnoDB status variables.
1043
 
--replace_column 2 #
1044
 
show status like "Innodb_row_lock_waits";
1045
 
--replace_column 2 #
1046
 
show status like "Innodb_row_lock_current_waits";
1047
 
--replace_column 2 #
1048
 
show status like "Innodb_row_lock_time";
1049
 
--replace_column 2 #
1050
 
show status like "Innodb_row_lock_time_max";
1051
 
--replace_column 2 #
1052
 
show status like "Innodb_row_lock_time_avg";
 
1039
#show status like "Innodb_row_lock_waits";
 
1040
#show status like "Innodb_row_lock_current_waits";
 
1041
#show status like "Innodb_row_lock_time";
 
1042
#show status like "Innodb_row_lock_time_max";
 
1043
#show status like "Innodb_row_lock_time_avg";
1053
1044
 
1054
1045
# Test for innodb_sync_spin_loops variable
1055
1046
show variables like "innodb_sync_spin_loops";
1434
1425
# test the padding of BINARY types and collations (Bug #14189)
1435
1426
 
1436
1427
create table t1 (s1 varbinary(2),primary key (s1)) engine=innodb;
1437
 
create table t3 (s1 varchar(2) ,primary key (s1)) engine=innodb;
1438
 
create table t4 (s1 char(2) ,primary key (s1)) engine=innodb;
 
1428
create table t3 (s1 varchar(2) binary,primary key (s1)) engine=innodb;
 
1429
create table t4 (s1 char(2) binary,primary key (s1)) engine=innodb;
1439
1430
 
1440
1431
insert into t1 values (0x41),(0x4120),(0x4100);
1441
1432
-- error ER_DUP_ENTRY
1479
1470
 
1480
1471
drop table t2,t1;
1481
1472
 
1482
 
create table t1 (a int primary key,s1 varchar(2) not null unique) engine=innodb;
1483
 
create table t2 (s1 char(2) not null, constraint c foreign key(s1) references t1(s1) on update cascade) engine=innodb;
 
1473
create table t1 (a int primary key,s1 varchar(2) binary not null unique) engine=innodb;
 
1474
create table t2 (s1 char(2) binary not null, constraint c foreign key(s1) references t1(s1) on update cascade) engine=innodb;
1484
1475
 
1485
1476
insert into t1 values(1,0x4100),(2,0x41);
1486
1477
insert into t2 values(0x41);
1866
1857
CREATE TABLE t1 ( a int ) ENGINE=innodb;
1867
1858
BEGIN;
1868
1859
INSERT INTO t1 VALUES (1);
1869
 
ALTER TABLE t1 ENGINE=innodb;
 
1860
OPTIMIZE TABLE t1;
1870
1861
DROP TABLE t1;
1871
1862
 
1872
1863
#