~posulliv/drizzle/optimizer-style-cleanup

« back to all changes in this revision

Viewing changes to tests/t/innodb.test

  • Committer: Padraig O'Sullivan
  • Date: 2010-04-17 01:38:47 UTC
  • mfrom: (1237.9.238 bad-staging)
  • Revision ID: osullivan.padraig@gmail.com-20100417013847-ibjioqsfbmf5yg4g
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
834
834
insert t1 values (1, "aaa", "bbb"), (NULL, "", "ccccc"), (0, NULL, "");
835
835
insert t2 select * from t1;
836
836
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
837
--replace_column 1 #  6 # 7 # 8 # 9 # 10 #
841
838
drop table t1,t2,t3;
842
839
 
1311
1308
INSERT INTO t2 VALUES(3);
1312
1309
 
1313
1310
DROP TABLE t2;
1314
 
#
1315
 
# Test that checksum table uses a consistent read Bug #12669
1316
 
#
1317
 
connect (a,localhost,root,,);
1318
 
connect (b,localhost,root,,);
1319
 
connection a;
1320
 
create table t1(a int not null) engine=innodb;
1321
 
insert into t1 values (1),(2);
1322
 
set autocommit=0;
1323
 
checksum table t1;
1324
 
connection b;
1325
 
insert into t1 values(3);
1326
 
connection a;
1327
 
#
1328
 
# Here checksum should not see insert
1329
 
#
1330
 
checksum table t1;
1331
 
connection a;
1332
 
commit;
1333
 
checksum table t1;
1334
 
commit;
1335
 
drop table t1;
1336
 
#
1337
 
# autocommit = 1
1338
 
#
1339
 
connection a;
1340
 
create table t1(a int not null) engine=innodb;
1341
 
insert into t1 values (1),(2);
1342
 
set autocommit=1;
1343
 
checksum table t1;
1344
 
connection b;
1345
 
set autocommit=1;
1346
 
insert into t1 values(3);
1347
 
connection a;
1348
 
#
1349
 
# Here checksum sees insert
1350
 
#
1351
 
checksum table t1;
1352
 
drop table t1;
1353
 
 
1354
 
connection default;
1355
 
disconnect a;
1356
 
disconnect b;
1357
1311
 
1358
1312
# tests for bugs #9802 and #13778
1359
1313