mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-6720 - enable connection log in mysqltest by default
This commit is contained in:
@ -11,10 +11,12 @@ set sql_log_bin=1;
|
||||
insert into t1 values(3, 0, 0, 0, password('does_this_work?'));
|
||||
insert into t1 values(4, connection_id(), rand()*1000, rand()*1000, password('does_this_still_work?'));
|
||||
select * into outfile 'rpl_misc_functions.outfile' from t1;
|
||||
connection slave;
|
||||
create temporary table t2 like t1;
|
||||
load data local infile 'MYSQLD_DATADIR/test/rpl_misc_functions.outfile' into table t2;
|
||||
select * from t1, t2 where (t1.id=t2.id) and not(t1.i=t2.i and t1.r1=t2.r1 and t1.r2=t2.r2 and t1.p=t2.p);
|
||||
id i r1 r2 p id i r1 r2 p
|
||||
connection master;
|
||||
drop table t1;
|
||||
DROP TABLE IF EXISTS t1;
|
||||
CREATE TABLE t1 (id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||
@ -38,7 +40,9 @@ CALL test_replication_sp2();
|
||||
INSERT INTO t1 (col_a) VALUES (test_replication_sf());
|
||||
INSERT INTO t1 (col_a) VALUES (test_replication_sf());
|
||||
INSERT INTO t1 (col_a) VALUES (test_replication_sf());
|
||||
connection slave;
|
||||
select * from t1 into outfile "../../tmp/t1_slave.txt";
|
||||
connection master;
|
||||
create temporary table t1_slave select * from t1 where 1=0;
|
||||
load data infile '../../tmp/t1_slave.txt' into table t1_slave;
|
||||
select count(*) into @aux from t1 join t1_slave using (id)
|
||||
@ -46,8 +50,10 @@ where ABS(t1.col_a - t1_slave.col_a) < 0.0000001 ;
|
||||
SELECT @aux;
|
||||
@aux
|
||||
12
|
||||
connection master;
|
||||
DROP TABLE t1, t1_slave;
|
||||
DROP PROCEDURE test_replication_sp1;
|
||||
DROP PROCEDURE test_replication_sp2;
|
||||
DROP FUNCTION test_replication_sf;
|
||||
connection slave;
|
||||
include/rpl_end.inc
|
||||
|
Reference in New Issue
Block a user