mirror of
https://github.com/MariaDB/server.git
synced 2025-05-10 02:01:19 +03:00

- Update mysql-test-run.pl to collect tests from several suites - Group test into suites - Add suite.opt file
104 lines
2.8 KiB
Plaintext
104 lines
2.8 KiB
Plaintext
stop slave;
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
reset master;
|
|
reset slave;
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
start slave;
|
|
create table t1 (a int, unique(a)) engine=ndbcluster;
|
|
create table t2 (a int, unique(a)) engine=innodb;
|
|
begin;
|
|
insert into t1 values(1);
|
|
insert into t2 values(1);
|
|
rollback;
|
|
select count(*) from t1;
|
|
count(*)
|
|
0
|
|
select count(*) from t2;
|
|
count(*)
|
|
0
|
|
select count(*) from t1;
|
|
count(*)
|
|
0
|
|
select count(*) from t2;
|
|
count(*)
|
|
0
|
|
begin;
|
|
load data infile '../std_data_ln/rpl_loaddata.dat' into table t2;
|
|
Warnings:
|
|
Warning 1262 Row 1 was truncated; it contained more data than there were input columns
|
|
Warning 1262 Row 2 was truncated; it contained more data than there were input columns
|
|
load data infile '../std_data_ln/rpl_loaddata.dat' into table t1;
|
|
Warnings:
|
|
Warning 1262 Row 1 was truncated; it contained more data than there were input columns
|
|
Warning 1262 Row 2 was truncated; it contained more data than there were input columns
|
|
rollback;
|
|
Warnings:
|
|
Warning 1196 Some non-transactional changed tables couldn't be rolled back
|
|
select count(*) from t1;
|
|
count(*)
|
|
2
|
|
select count(*) from t2;
|
|
count(*)
|
|
0
|
|
select count(*) from t1;
|
|
count(*)
|
|
2
|
|
select count(*) from t2;
|
|
count(*)
|
|
0
|
|
delete from t1;
|
|
delete from t2;
|
|
begin;
|
|
load data infile '../std_data_ln/rpl_loaddata.dat' into table t2;
|
|
Warnings:
|
|
Warning 1262 Row 1 was truncated; it contained more data than there were input columns
|
|
Warning 1262 Row 2 was truncated; it contained more data than there were input columns
|
|
load data infile '../std_data_ln/rpl_loaddata.dat' into table t1;
|
|
Warnings:
|
|
Warning 1262 Row 1 was truncated; it contained more data than there were input columns
|
|
Warning 1262 Row 2 was truncated; it contained more data than there were input columns
|
|
rollback;
|
|
Warnings:
|
|
Warning 1196 Some non-transactional changed tables couldn't be rolled back
|
|
select count(*) from t1;
|
|
count(*)
|
|
2
|
|
select count(*) from t2;
|
|
count(*)
|
|
0
|
|
select count(*) from t1;
|
|
count(*)
|
|
2
|
|
select count(*) from t2;
|
|
count(*)
|
|
0
|
|
delete from t1;
|
|
delete from t2;
|
|
begin;
|
|
insert into t2 values(3),(4);
|
|
insert into t1 values(3),(4);
|
|
load data infile '../std_data_ln/rpl_loaddata.dat' into table t2;
|
|
Warnings:
|
|
Warning 1262 Row 1 was truncated; it contained more data than there were input columns
|
|
Warning 1262 Row 2 was truncated; it contained more data than there were input columns
|
|
load data infile '../std_data_ln/rpl_loaddata.dat' into table t1;
|
|
Warnings:
|
|
Warning 1262 Row 1 was truncated; it contained more data than there were input columns
|
|
Warning 1262 Row 2 was truncated; it contained more data than there were input columns
|
|
rollback;
|
|
Warnings:
|
|
Warning 1196 Some non-transactional changed tables couldn't be rolled back
|
|
select count(*) from t1;
|
|
count(*)
|
|
4
|
|
select count(*) from t2;
|
|
count(*)
|
|
0
|
|
select count(*) from t1;
|
|
count(*)
|
|
4
|
|
select count(*) from t2;
|
|
count(*)
|
|
0
|
|
drop table t1,t2;
|