1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-6720 - enable connection log in mysqltest by default

This commit is contained in:
Sergey Vojtovich
2016-03-25 20:51:22 +04:00
parent 5052e2479e
commit 282497dd6d
1559 changed files with 38534 additions and 9891 deletions

View File

@@ -18,6 +18,7 @@ SELECT * FROM t2 ORDER BY b;
b c
5 0
6 11
connection slave;
SELECT * FROM t1 ORDER BY a;
a
10
@@ -28,14 +29,19 @@ SELECT * FROM t2 ORDER BY b;
b c
5 0
6 11
connection master;
SET TIMESTAMP=1000000000;
CREATE TABLE t3 ( a INT UNIQUE );
SET FOREIGN_KEY_CHECKS=0;
INSERT INTO t3 VALUES (1),(1);
ERROR 23000: Duplicate entry '1' for key 'a'
connection slave;
connection master;
SET FOREIGN_KEY_CHECKS=0;
DROP TABLE IF EXISTS t1,t2,t3;
SET FOREIGN_KEY_CHECKS=1;
connection slave;
connection master;
create table t1 (b int primary key) engine = INNODB;
create table t2 (a int primary key, b int, foreign key (b) references t1(b))
engine = INNODB;
@@ -44,8 +50,10 @@ insert into t2 set a=1, b=1;
set foreign_key_checks=0;
delete from t1;
must sync w/o a problem (could not with the buggy code)
connection slave;
select count(*) from t1 /* must be zero */;
count(*)
0
connection master;
drop table t2,t1;
include/rpl_end.inc