mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-6720 - enable connection log in mysqltest by default
This commit is contained in:
@ -216,7 +216,7 @@ if (`select char_length('$bit_field_special') > 0`) {
|
||||
connection master;
|
||||
eval CREATE TABLE t7 (C1 INT PRIMARY KEY, C2 INT) ENGINE = $type ;
|
||||
sync_slave_with_master;
|
||||
--echo --- on slave: original values ---
|
||||
--echo --- original values ---
|
||||
INSERT INTO t7 VALUES (1,3), (2,6), (3,9);
|
||||
SELECT * FROM t7 ORDER BY C1;
|
||||
|
||||
@ -226,13 +226,13 @@ SELECT * FROM t7 ORDER BY C1;
|
||||
set @@global.slave_exec_mode= 'IDEMPOTENT';
|
||||
|
||||
connection master;
|
||||
--echo --- on master: new values inserted ---
|
||||
--echo --- new values inserted ---
|
||||
INSERT INTO t7 VALUES (1,2), (2,4), (3,6);
|
||||
SELECT * FROM t7 ORDER BY C1;
|
||||
sync_slave_with_master;
|
||||
|
||||
set @@global.slave_exec_mode= default;
|
||||
--echo --- on slave: old values should be overwritten by replicated values ---
|
||||
--echo --- old values should be overwritten by replicated values ---
|
||||
SELECT * FROM t7 ORDER BY C1;
|
||||
|
||||
#
|
||||
@ -240,7 +240,6 @@ SELECT * FROM t7 ORDER BY C1;
|
||||
# causing a conflict for a key that is not "last".
|
||||
#
|
||||
connection master;
|
||||
--echo --- on master ---
|
||||
eval CREATE TABLE t8 (a INT PRIMARY KEY, b INT UNIQUE, c INT UNIQUE) ENGINE = $type ;
|
||||
|
||||
# First we make sure that the constraints are correctly set.
|
||||
@ -254,7 +253,6 @@ INSERT INTO t8 VALUES (11,22,99);
|
||||
SELECT * FROM t8 ORDER BY a;
|
||||
|
||||
sync_slave_with_master;
|
||||
--echo --- on slave ---
|
||||
SELECT * FROM t8 ORDER BY a;
|
||||
INSERT INTO t8 VALUES (1,2,3), (2,4,6), (3,6,9);
|
||||
SELECT * FROM t8 ORDER BY a;
|
||||
@ -265,14 +263,12 @@ SELECT * FROM t8 ORDER BY a;
|
||||
set @@global.slave_exec_mode= 'IDEMPOTENT';
|
||||
|
||||
connection master;
|
||||
--echo --- on master ---
|
||||
# We insert a row that will cause conflict on the primary key but not
|
||||
# on the other keys.
|
||||
INSERT INTO t8 VALUES (2,4,8);
|
||||
sync_slave_with_master;
|
||||
set @@global.slave_exec_mode= default;
|
||||
|
||||
--echo --- on slave ---
|
||||
SELECT * FROM t8 ORDER BY a;
|
||||
|
||||
# BUG#31552: Replication breaks when deleting rows from out-of-sync
|
||||
@ -280,7 +276,6 @@ SELECT * FROM t8 ORDER BY a;
|
||||
|
||||
--echo **** Test for BUG#31552 ****
|
||||
|
||||
--echo **** On Master ****
|
||||
# Clean up t1 so that we can use it.
|
||||
connection master;
|
||||
DELETE FROM t1;
|
||||
@ -289,10 +284,8 @@ sync_slave_with_master;
|
||||
# Just to get a clean binary log
|
||||
--source include/rpl_reset.inc
|
||||
|
||||
--echo **** On Master ****
|
||||
connection master;
|
||||
INSERT INTO t1 VALUES ('K','K'), ('L','L'), ('M','M');
|
||||
--echo **** On Master ****
|
||||
sync_slave_with_master;
|
||||
# since bug#31552/31609 idempotency is not default any longer. In order
|
||||
# the following test DELETE FROM t1 to pass the mode is switched
|
||||
@ -313,14 +306,12 @@ query_vertical SELECT COUNT(*) FROM t1 ORDER BY c1,c2;
|
||||
# (regression test)
|
||||
|
||||
--echo **** Test for BUG#37076 ****
|
||||
--echo **** On Master ****
|
||||
connection master;
|
||||
DROP TABLE IF EXISTS t1;
|
||||
CREATE TABLE t1 (a TIMESTAMP, b DATETIME, c DATE);
|
||||
INSERT INTO t1 VALUES(
|
||||
'2005-11-14 01:01:01', '2005-11-14 01:01:02', '2005-11-14');
|
||||
|
||||
--echo **** On Slave ****
|
||||
sync_slave_with_master slave;
|
||||
SELECT * FROM t1;
|
||||
|
||||
|
Reference in New Issue
Block a user