~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/tests/t/innodb.test

  • Committer: Barry.Leslie at PrimeBase
  • Date: 2011-01-22 03:22:44 UTC
  • mfrom: (2101 staging)
  • mto: (2228.1.4 build)
  • mto: This revision was merged to the branch mainline in revision 2230.
  • Revision ID: barry.leslie@primebase.com-20110122032244-ukbe3mlj7fs8xph6
Merged with lp:drizzle.

Show diffs side-by-side

added added

removed removed

Lines of Context:
228
228
delete from t1;
229
229
commit;
230
230
select * from t1;
 
231
commit;
231
232
drop table t1;
232
233
 
233
234
#
235
236
#
236
237
 
237
238
create table t1 (a integer) engine=innodb;
238
 
start transaction;
239
239
rename table t1 to t2;
240
240
create table t1 (b integer) engine=innodb;
 
241
start transaction;
241
242
insert into t1 values (1);
242
243
rollback;
243
244
drop table t1;
260
261
COMMIT;
261
262
SELECT * FROM t1;
262
263
SELECT _userid FROM t1 WHERE _userid='marc@anyware.co.uk';
 
264
COMMIT;
263
265
drop table t1;
264
266
set autocommit=1;
265
267
 
304
306
select * from t1;
305
307
update t1 set col2='7' where col1='4';
306
308
select * from t1;
307
 
alter table t1 add co3 int not null;
 
309
ALTER TABLE t1 ADD co3 INT DEFAULT 42 NOT NULL;
308
310
select * from t1;
309
311
update t1 set col2='9' where col1='2';
310
312
select * from t1;
549
551
set autocommit=0;
550
552
create table t1 (a int not null) engine= innodb;
551
553
insert into t1 values(1),(2);
 
554
commit;
552
555
truncate table t1;
553
556
commit;
554
557
truncate table t1;
1051
1054
show status like "Innodb_row_lock_time_avg";
1052
1055
 
1053
1056
# Test for innodb_sync_spin_loops variable
 
1057
set @my_innodb_sync_spin_loops = @@global.innodb_sync_spin_loops;
1054
1058
show variables like "innodb_sync_spin_loops";
1055
1059
set global innodb_sync_spin_loops=1000;
1056
1060
show variables like "innodb_sync_spin_loops";
1058
1062
show variables like "innodb_sync_spin_loops";
1059
1063
set global innodb_sync_spin_loops=20;
1060
1064
show variables like "innodb_sync_spin_loops";
 
1065
set @@global.innodb_sync_spin_loops = @my_innodb_sync_spin_loops;
1061
1066
 
1062
1067
# Test for innodb_thread_concurrency variable
 
1068
set @my_innodb_thread_concurrency = @@global.innodb_thread_concurrency;
1063
1069
show variables like "innodb_thread_concurrency";
1064
1070
set global innodb_thread_concurrency=1001;
1065
1071
show variables like "innodb_thread_concurrency";
1067
1073
show variables like "innodb_thread_concurrency";
1068
1074
set global innodb_thread_concurrency=16;
1069
1075
show variables like "innodb_thread_concurrency";
 
1076
set @@global.innodb_thread_concurrency = @my_innodb_thread_concurrency;
1070
1077
 
1071
1078
# Test for innodb_concurrency_tickets variable
1072
1079
show variables like "innodb_concurrency_tickets";
1616
1623
SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;
1617
1624
insert into t1 select * from t2;
1618
1625
update t1 set b = (select e from t2 where a = d);
 
1626
commit;
1619
1627
create table t3(d int not null, e int, primary key(d)) engine=innodb
1620
1628
select * from t2;
1621
1629
commit;
1810
1818
CREATE TABLE t1 ( a int ) ENGINE=innodb;
1811
1819
BEGIN;
1812
1820
INSERT INTO t1 VALUES (1);
 
1821
COMMIT;
1813
1822
ALTER TABLE t1 ENGINE=innodb;
1814
1823
DROP TABLE t1;
1815
1824