mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
aee08c3d06
Changed test to enable easier debugging. mysql-test/extra/rpl_tests/rpl_extraMaster_Col.test: WL#3915 : (NDB) master's cols > slave Changes to test in order to aide debugging. mysql-test/suite/rpl/r/rpl_extraColmaster_innodb.result: WL#3915 : (NDB) master's cols > slave New result file for test changes. mysql-test/suite/rpl/r/rpl_extraColmaster_myisam.result: WL#3915 : (NDB) master's cols > slave New result file for test changes. mysql-test/suite/rpl/r/rpl_row_extraColmaster_ndb.result: WL#3915 : (NDB) master's cols > slave New result file for test changes.
684 lines
19 KiB
Text
684 lines
19 KiB
Text
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 (f1 INT, f2 INT, f3 INT PRIMARY KEY, f4 CHAR(20),
|
||
f5 FLOAT DEFAULT '2.00')
|
||
ENGINE='NDB';
|
||
alter table t1 drop f5;
|
||
INSERT into t1 values (1, 1, 1, 'first', 1.0);
|
||
show slave status;;
|
||
Slave_IO_State #
|
||
Master_Host 127.0.0.1
|
||
Master_User root
|
||
Master_Port #
|
||
Connect_Retry 1
|
||
Master_Log_File master-bin.000001
|
||
Read_Master_Log_Pos #
|
||
Relay_Log_File #
|
||
Relay_Log_Pos #
|
||
Relay_Master_Log_File master-bin.000001
|
||
Slave_IO_Running Yes
|
||
Slave_SQL_Running Yes
|
||
Replicate_Do_DB
|
||
Replicate_Ignore_DB
|
||
Replicate_Do_Table
|
||
Replicate_Ignore_Table
|
||
Replicate_Wild_Do_Table
|
||
Replicate_Wild_Ignore_Table
|
||
Last_Errno 0
|
||
Last_Error
|
||
Skip_Counter 0
|
||
Exec_Master_Log_Pos #
|
||
Relay_Log_Space #
|
||
Until_Condition None
|
||
Until_Log_File
|
||
Until_Log_Pos 0
|
||
Master_SSL_Allowed No
|
||
Master_SSL_CA_File
|
||
Master_SSL_CA_Path
|
||
Master_SSL_Cert
|
||
Master_SSL_Cipher
|
||
Master_SSL_Key
|
||
Seconds_Behind_Master #
|
||
Master_SSL_Verify_Server_Cert No
|
||
Last_IO_Errno 0
|
||
Last_IO_Error
|
||
Last_SQL_Errno 0
|
||
Last_SQL_Error
|
||
select * from t1 order by f3;
|
||
f1 f2 f3 f4
|
||
1 1 1 first
|
||
DROP TABLE t1;
|
||
CREATE TABLE t1 (f1 INT, f2 INT, f3 INT PRIMARY KEY, f4 CHAR(20),
|
||
f5 FLOAT DEFAULT '2.00',
|
||
f6 CHAR(4) DEFAULT 'TEST')
|
||
ENGINE='NDB';
|
||
alter table t1 drop f5, drop f6;
|
||
INSERT into t1 values (1, 1, 1, 'first', 1.0, 'yksi');
|
||
show slave status;;
|
||
Slave_IO_State #
|
||
Master_Host 127.0.0.1
|
||
Master_User root
|
||
Master_Port #
|
||
Connect_Retry 1
|
||
Master_Log_File master-bin.000001
|
||
Read_Master_Log_Pos #
|
||
Relay_Log_File #
|
||
Relay_Log_Pos #
|
||
Relay_Master_Log_File master-bin.000001
|
||
Slave_IO_Running Yes
|
||
Slave_SQL_Running Yes
|
||
Replicate_Do_DB
|
||
Replicate_Ignore_DB
|
||
Replicate_Do_Table
|
||
Replicate_Ignore_Table
|
||
Replicate_Wild_Do_Table
|
||
Replicate_Wild_Ignore_Table
|
||
Last_Errno 0
|
||
Last_Error
|
||
Skip_Counter 0
|
||
Exec_Master_Log_Pos #
|
||
Relay_Log_Space #
|
||
Until_Condition None
|
||
Until_Log_File
|
||
Until_Log_Pos 0
|
||
Master_SSL_Allowed No
|
||
Master_SSL_CA_File
|
||
Master_SSL_CA_Path
|
||
Master_SSL_Cert
|
||
Master_SSL_Cipher
|
||
Master_SSL_Key
|
||
Seconds_Behind_Master #
|
||
Master_SSL_Verify_Server_Cert No
|
||
Last_IO_Errno 0
|
||
Last_IO_Error
|
||
Last_SQL_Errno 0
|
||
Last_SQL_Error
|
||
select * from t1 order by f3;
|
||
f1 f2 f3 f4
|
||
1 1 1 first
|
||
DROP TABLE t1;
|
||
CREATE TABLE t1 (f1 INT, f2 INT, f3 INT PRIMARY KEY, f4 CHAR(20),
|
||
f5 FLOAT DEFAULT '2.00',
|
||
f6 CHAR(4) DEFAULT 'TEST',
|
||
f7 INT DEFAULT '0')
|
||
ENGINE='NDB';
|
||
alter table t1 drop f5, drop f6, drop f7;
|
||
INSERT into t1 values (1, 1, 1, 'first', 1.0, 'yksi', 1);
|
||
show slave status;;
|
||
Slave_IO_State #
|
||
Master_Host 127.0.0.1
|
||
Master_User root
|
||
Master_Port #
|
||
Connect_Retry 1
|
||
Master_Log_File master-bin.000001
|
||
Read_Master_Log_Pos #
|
||
Relay_Log_File #
|
||
Relay_Log_Pos #
|
||
Relay_Master_Log_File master-bin.000001
|
||
Slave_IO_Running Yes
|
||
Slave_SQL_Running Yes
|
||
Replicate_Do_DB
|
||
Replicate_Ignore_DB
|
||
Replicate_Do_Table
|
||
Replicate_Ignore_Table
|
||
Replicate_Wild_Do_Table
|
||
Replicate_Wild_Ignore_Table
|
||
Last_Errno 0
|
||
Last_Error
|
||
Skip_Counter 0
|
||
Exec_Master_Log_Pos #
|
||
Relay_Log_Space #
|
||
Until_Condition None
|
||
Until_Log_File
|
||
Until_Log_Pos 0
|
||
Master_SSL_Allowed No
|
||
Master_SSL_CA_File
|
||
Master_SSL_CA_Path
|
||
Master_SSL_Cert
|
||
Master_SSL_Cipher
|
||
Master_SSL_Key
|
||
Seconds_Behind_Master #
|
||
Master_SSL_Verify_Server_Cert No
|
||
Last_IO_Errno 0
|
||
Last_IO_Error
|
||
Last_SQL_Errno 0
|
||
Last_SQL_Error
|
||
select * from t1 order by f3;
|
||
f1 f2 f3 f4
|
||
1 1 1 first
|
||
DROP TABLE t1;
|
||
CREATE TABLE t1 (f1 INT, f2 INT, f3 INT PRIMARY KEY, f4 CHAR(20),
|
||
f5 FLOAT DEFAULT '2.00',
|
||
f6 CHAR(4) DEFAULT 'TEST',
|
||
f7 INT DEFAULT '0',
|
||
f8 TEXT)
|
||
ENGINE='NDB';
|
||
alter table t1 drop f5, drop f6, drop f7, drop f8;
|
||
INSERT into t1 values (1, 1, 1, 'first', 1.0, 'yksi', 1, 'lounge of happiness');
|
||
show slave status;;
|
||
Slave_IO_State #
|
||
Master_Host 127.0.0.1
|
||
Master_User root
|
||
Master_Port #
|
||
Connect_Retry 1
|
||
Master_Log_File master-bin.000001
|
||
Read_Master_Log_Pos #
|
||
Relay_Log_File #
|
||
Relay_Log_Pos #
|
||
Relay_Master_Log_File master-bin.000001
|
||
Slave_IO_Running Yes
|
||
Slave_SQL_Running Yes
|
||
Replicate_Do_DB
|
||
Replicate_Ignore_DB
|
||
Replicate_Do_Table
|
||
Replicate_Ignore_Table
|
||
Replicate_Wild_Do_Table
|
||
Replicate_Wild_Ignore_Table
|
||
Last_Errno 0
|
||
Last_Error
|
||
Skip_Counter 0
|
||
Exec_Master_Log_Pos #
|
||
Relay_Log_Space #
|
||
Until_Condition None
|
||
Until_Log_File
|
||
Until_Log_Pos 0
|
||
Master_SSL_Allowed No
|
||
Master_SSL_CA_File
|
||
Master_SSL_CA_Path
|
||
Master_SSL_Cert
|
||
Master_SSL_Cipher
|
||
Master_SSL_Key
|
||
Seconds_Behind_Master #
|
||
Master_SSL_Verify_Server_Cert No
|
||
Last_IO_Errno 0
|
||
Last_IO_Error
|
||
Last_SQL_Errno 0
|
||
Last_SQL_Error
|
||
select * from t1 order by f3;
|
||
f1 f2 f3 f4
|
||
1 1 1 first
|
||
DROP TABLE t1;
|
||
CREATE TABLE t1 (f1 INT, f2 INT, f3 INT PRIMARY KEY, f4 CHAR(20),
|
||
f5 FLOAT DEFAULT '2.00',
|
||
f6 CHAR(4) DEFAULT 'TEST',
|
||
f7 INT DEFAULT '0',
|
||
f8 TEXT,
|
||
f9 LONGBLOB)
|
||
ENGINE='NDB';
|
||
alter table t1 drop f5, drop f6, drop f7, drop f8, drop f9;
|
||
INSERT into t1 values (1, 1, 1, 'first', 1.0, 'yksi', 1, 'lounge of happiness', 'very fat blob');
|
||
show slave status;;
|
||
Slave_IO_State #
|
||
Master_Host 127.0.0.1
|
||
Master_User root
|
||
Master_Port #
|
||
Connect_Retry 1
|
||
Master_Log_File master-bin.000001
|
||
Read_Master_Log_Pos #
|
||
Relay_Log_File #
|
||
Relay_Log_Pos #
|
||
Relay_Master_Log_File master-bin.000001
|
||
Slave_IO_Running Yes
|
||
Slave_SQL_Running Yes
|
||
Replicate_Do_DB
|
||
Replicate_Ignore_DB
|
||
Replicate_Do_Table
|
||
Replicate_Ignore_Table
|
||
Replicate_Wild_Do_Table
|
||
Replicate_Wild_Ignore_Table
|
||
Last_Errno 0
|
||
Last_Error
|
||
Skip_Counter 0
|
||
Exec_Master_Log_Pos #
|
||
Relay_Log_Space #
|
||
Until_Condition None
|
||
Until_Log_File
|
||
Until_Log_Pos 0
|
||
Master_SSL_Allowed No
|
||
Master_SSL_CA_File
|
||
Master_SSL_CA_Path
|
||
Master_SSL_Cert
|
||
Master_SSL_Cipher
|
||
Master_SSL_Key
|
||
Seconds_Behind_Master #
|
||
Master_SSL_Verify_Server_Cert No
|
||
Last_IO_Errno 0
|
||
Last_IO_Error
|
||
Last_SQL_Errno 0
|
||
Last_SQL_Error
|
||
select * from t1 order by f3;
|
||
f1 f2 f3 f4
|
||
1 1 1 first
|
||
DROP TABLE t1;
|
||
CREATE TABLE t1 (f1 INT, f2 INT, f3 INT PRIMARY KEY, f4 CHAR(20),
|
||
f5 FLOAT DEFAULT '2.00',
|
||
f6 CHAR(4) DEFAULT 'TEST',
|
||
f7 INT DEFAULT '0',
|
||
f8 TEXT,
|
||
f9 LONGBLOB,
|
||
f10 BIT(63))
|
||
ENGINE='NDB';
|
||
alter table t1 drop f5, drop f6, drop f7, drop f8, drop f9, drop f10;
|
||
INSERT into t1 values (1, 1, 1, 'first', 1.0, 'yksi', 1, 'lounge of happiness', 'very fat blob', b'01010101010101');
|
||
show slave status;;
|
||
Slave_IO_State #
|
||
Master_Host 127.0.0.1
|
||
Master_User root
|
||
Master_Port #
|
||
Connect_Retry 1
|
||
Master_Log_File master-bin.000001
|
||
Read_Master_Log_Pos #
|
||
Relay_Log_File #
|
||
Relay_Log_Pos #
|
||
Relay_Master_Log_File master-bin.000001
|
||
Slave_IO_Running Yes
|
||
Slave_SQL_Running Yes
|
||
Replicate_Do_DB
|
||
Replicate_Ignore_DB
|
||
Replicate_Do_Table
|
||
Replicate_Ignore_Table
|
||
Replicate_Wild_Do_Table
|
||
Replicate_Wild_Ignore_Table
|
||
Last_Errno 0
|
||
Last_Error
|
||
Skip_Counter 0
|
||
Exec_Master_Log_Pos #
|
||
Relay_Log_Space #
|
||
Until_Condition None
|
||
Until_Log_File
|
||
Until_Log_Pos 0
|
||
Master_SSL_Allowed No
|
||
Master_SSL_CA_File
|
||
Master_SSL_CA_Path
|
||
Master_SSL_Cert
|
||
Master_SSL_Cipher
|
||
Master_SSL_Key
|
||
Seconds_Behind_Master #
|
||
Master_SSL_Verify_Server_Cert No
|
||
Last_IO_Errno 0
|
||
Last_IO_Error
|
||
Last_SQL_Errno 0
|
||
Last_SQL_Error
|
||
select * from t1 order by f3;
|
||
f1 f2 f3 f4
|
||
1 1 1 first
|
||
DROP TABLE t1;
|
||
CREATE TABLE t1 (f1 INT, f2 INT, f3 INT PRIMARY KEY, f4 CHAR(20),
|
||
/* extra */
|
||
f5 FLOAT DEFAULT '2.00',
|
||
f6 CHAR(4) DEFAULT 'TEST',
|
||
f7 INT DEFAULT '0',
|
||
f8 TEXT,
|
||
f9 LONGBLOB,
|
||
f10 BIT(63),
|
||
f11 VARBINARY(64))
|
||
ENGINE='NDB';
|
||
alter table t1 drop f5, drop f6, drop f7, drop f8, drop f9, drop f10, drop f11;
|
||
INSERT into t1 values (1, 1, 1, 'first', 1.0, 'yksi', 1, 'lounge of happiness', 'very fat blob', b'01010101010101', 0x123456);
|
||
INSERT into t1 values (2, 2, 2, 'second', 2.0, 'kaks', 2, 'got stolen from the paradise', 'very fat blob', b'01010101010101', 0x123456), (3, 3, 3, 'third', 3.0, 'kolm', 3, 'got stolen from the paradise', 'very fat blob', b'01010101010101', 0x123456);
|
||
update t1 set f4= 'next' where f1=1;
|
||
delete from t1 where f1=1;
|
||
select * from t1 order by f3;
|
||
f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11
|
||
2 2 2 second 2 kaks 2 got stolen from the paradise very fat blob |