~stewart/drizzle/embedded-innodb-create-select-transaction-arrgh

« back to all changes in this revision

Viewing changes to tests/r/innodb.result

Merged embedded-innodb-autoincrement into embedded-innodb-create-select-transaction-arrgh.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1127
1127
insert t1 values (1, "aaa", "bbb"), (NULL, "", "ccccc"), (0, NULL, "");
1128
1128
insert t2 select * from t1;
1129
1129
insert t3 select * from t1;
1130
 
checksum table t1, t2, t3, t4;
1131
 
Table   Checksum
1132
 
test.t1 2948697075
1133
 
test.t2 3505595080
1134
 
test.t3 3505595080
1135
 
test.t4 NULL
1136
 
Warnings:
1137
 
Error   1146    Table 'test.t4' doesn't exist
1138
 
checksum table t1, t2, t3, t4;
1139
 
Table   Checksum
1140
 
test.t1 2948697075
1141
 
test.t2 3505595080
1142
 
test.t3 3505595080
1143
 
test.t4 NULL
1144
 
Warnings:
1145
 
Error   1146    Table 'test.t4' doesn't exist
1146
 
checksum table t1, t2, t3, t4;
1147
 
Table   Checksum
1148
 
test.t1 2948697075
1149
 
test.t2 3505595080
1150
 
test.t3 3505595080
1151
 
test.t4 NULL
1152
 
Warnings:
1153
 
Error   1146    Table 'test.t4' doesn't exist
1154
1130
drop table t1,t2,t3;
1155
1131
create table t1 (id int,  name char(10) not null,  name2 char(10) not null) engine=innodb;
1156
1132
insert into t1 values(1,'first','fff'),(2,'second','sss'),(3,'third','ttt');
2289
2265
INSERT INTO t2 VALUES(3);
2290
2266
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (`test`.`t2`, CONSTRAINT `c1` FOREIGN KEY (`v`) REFERENCES `t1` (`id`))
2291
2267
DROP TABLE t2;
2292
 
create table t1(a int not null) engine=innodb;
2293
 
insert into t1 values (1),(2);
2294
 
set autocommit=0;
2295
 
checksum table t1;
2296
 
Table   Checksum
2297
 
test.t1 1531596814
2298
 
insert into t1 values(3);
2299
 
checksum table t1;
2300
 
Table   Checksum
2301
 
test.t1 1531596814
2302
 
commit;
2303
 
checksum table t1;
2304
 
Table   Checksum
2305
 
test.t1 2050879373
2306
 
commit;
2307
 
drop table t1;
2308
 
create table t1(a int not null) engine=innodb;
2309
 
insert into t1 values (1),(2);
2310
 
set autocommit=1;
2311
 
checksum table t1;
2312
 
Table   Checksum
2313
 
test.t1 1531596814
2314
 
set autocommit=1;
2315
 
insert into t1 values(3);
2316
 
checksum table t1;
2317
 
Table   Checksum
2318
 
test.t1 2050879373
2319
 
drop table t1;
2320
2268
set foreign_key_checks=0;
2321
2269
create table t2 (a int primary key, b int, foreign key (b) references t1(a)) engine = innodb;
2322
2270
create table t1(a char(10) primary key, b varchar(20)) engine = innodb;