2
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
5
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
7
**** Diff Table Def Start ****
11
CREATE TABLE t1 (a INT, b INT PRIMARY KEY, c CHAR(20),
12
d FLOAT DEFAULT '2.00',
13
e CHAR(4) DEFAULT 'TEST')
15
*** Create t1 on Master ***
16
CREATE TABLE t1 (a INT PRIMARY KEY, b INT, c CHAR(10)
21
*** Master Data Insert ***
22
INSERT INTO t1 () VALUES(1,2,'TEXAS'),(2,1,'AUSTIN'),(3,4,'QA');
23
SELECT * FROM t1 ORDER BY a;
28
*** Select from slave ***
29
SELECT * FROM t1 ORDER BY a;
36
*** Create t2 on slave ***
39
CREATE TABLE t2 (a INT, b INT PRIMARY KEY, c CHAR(5),
40
d FLOAT DEFAULT '2.00',
41
e CHAR(5) DEFAULT 'TEST2')
43
*** Create t2 on Master ***
44
CREATE TABLE t2 (a INT PRIMARY KEY, b INT, c CHAR(10)
47
*** Master Data Insert ***
48
INSERT INTO t2 () VALUES(1,2,'Kyle, TEX'),(2,1,'JOE AUSTIN'),(3,4,'QA TESTING');
49
SELECT * FROM t2 ORDER BY a;
62
Master_Log_File master-bin.000001
66
Relay_Master_Log_File master-bin.000001
72
Replicate_Ignore_Table #
73
Replicate_Wild_Do_Table
74
Replicate_Wild_Ignore_Table
76
Last_Error Table definition on master and slave does not match: Column 2 size mismatch - master has size 10, test.t2 on slave has size 6. Master's column size should be <= the slave's column size.
89
Seconds_Behind_Master #
90
Master_SSL_Verify_Server_Cert No
94
Last_SQL_Error Table definition on master and slave does not match: Column 2 size mismatch - master has size 10, test.t2 on slave has size 6. Master's column size should be <= the slave's column size.
97
SELECT * FROM t2 ORDER BY a;
103
*** Create t3 on slave ***
106
CREATE TABLE t3 (a INT, b INT PRIMARY KEY, c CHAR(20),
107
d FLOAT DEFAULT '2.00',
108
e CHAR(5) DEFAULT 'TEST2')
110
*** Create t3 on Master ***
111
CREATE TABLE t3 (a BLOB, b INT PRIMARY KEY, c CHAR(20)
116
*** Master Data Insert ***
118
set @b1 = concat(@b1,@b1);
119
INSERT INTO t3 () VALUES(@b1,2,'Kyle, TEX'),(@b1,1,'JOE AUSTIN'),(@b1,4,'QA TESTING');
120
********************************************
121
*** Expect slave to fail with Error 1522 ***
122
********************************************
125
Master_Host 127.0.0.1
129
Master_Log_File master-bin.000001
130
Read_Master_Log_Pos #
133
Relay_Master_Log_File master-bin.000001
139
Replicate_Ignore_Table #
140
Replicate_Wild_Do_Table
141
Replicate_Wild_Ignore_Table
143
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 252, test.t3 has type 3
145
Exec_Master_Log_Pos #
150
Master_SSL_Allowed No
156
Seconds_Behind_Master #
157
Master_SSL_Verify_Server_Cert No
161
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 252, test.t3 has type 3
162
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
166
*** Create t4 on slave ***
169
CREATE TABLE t4 (a INT, b INT PRIMARY KEY, c CHAR(20),
170
d FLOAT DEFAULT '2.00',
171
e CHAR(5) DEFAULT 'TEST2')
173
*** Create t4 on Master ***
174
CREATE TABLE t4 (a DECIMAL(8,2), b INT PRIMARY KEY, c CHAR(20)
179
*** Master Data Insert ***
180
INSERT INTO t4 () VALUES(100.22,2,'Kyle, TEX'),(200.26,1,'JOE AUSTIN'),
181
(30000.22,4,'QA TESTING');
182
********************************************
183
*** Expect slave to fail with Error 1522 ***
184
********************************************
187
Master_Host 127.0.0.1
191
Master_Log_File master-bin.000001
192
Read_Master_Log_Pos #
195
Relay_Master_Log_File master-bin.000001
201
Replicate_Ignore_Table #
202
Replicate_Wild_Do_Table
203
Replicate_Wild_Ignore_Table
205
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 246, test.t4 has type 3
207
Exec_Master_Log_Pos #
212
Master_SSL_Allowed No
218
Seconds_Behind_Master #
219
Master_SSL_Verify_Server_Cert No
223
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 246, test.t4 has type 3
224
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
228
*** Create t5 on slave ***
231
CREATE TABLE t5 (a INT PRIMARY KEY, b CHAR(5),
232
c FLOAT, d INT, e DOUBLE,
233
f DECIMAL(8,2))ENGINE='InnoDB';
234
*** Create t5 on Master ***
235
CREATE TABLE t5 (a INT PRIMARY KEY, b VARCHAR(6),
236
c DECIMAL(8,2), d BIT, e BLOB,
237
f FLOAT) ENGINE='InnoDB';
241
*** Master Data Insert ***
242
INSERT INTO t5 () VALUES(1,'Kyle',200.23,1,'b1b1',23.00098),
243
(2,'JOE',300.01,0,'b2b2',1.0000009);
244
********************************************
245
*** Expect slave to fail with Error 1522 ***
246
********************************************
249
Master_Host 127.0.0.1
253
Master_Log_File master-bin.000001
254
Read_Master_Log_Pos #
257
Relay_Master_Log_File master-bin.000001
263
Replicate_Ignore_Table #
264
Replicate_Wild_Do_Table
265
Replicate_Wild_Ignore_Table
267
Last_Error Table definition on master and slave does not match: Column 5 type mismatch - received type 4, test.t5 has type 246
269
Exec_Master_Log_Pos #
274
Master_SSL_Allowed No
280
Seconds_Behind_Master #
281
Master_SSL_Verify_Server_Cert No
285
Last_SQL_Error Table definition on master and slave does not match: Column 5 type mismatch - received type 4, test.t5 has type 246
286
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
290
*** Create t6 on slave ***
293
CREATE TABLE t6 (a INT PRIMARY KEY, b CHAR(5),
294
c FLOAT, d INT)ENGINE='InnoDB';
295
*** Create t6 on Master ***
296
CREATE TABLE t6 (a INT PRIMARY KEY, b VARCHAR(6),
297
c DECIMAL(8,2), d BIT
302
*** Master Data Insert ***
303
INSERT INTO t6 () VALUES(1,'Kyle',200.23,1),
305
********************************************
306
*** Expect slave to fail with Error 1522 ***
307
********************************************
310
Master_Host 127.0.0.1
314
Master_Log_File master-bin.000001
315
Read_Master_Log_Pos #
318
Relay_Master_Log_File master-bin.000001
324
Replicate_Ignore_Table #
325
Replicate_Wild_Do_Table
326
Replicate_Wild_Ignore_Table
328
Last_Error Table definition on master and slave does not match: Column 3 type mismatch - received type 16, test.t6 has type 3
330
Exec_Master_Log_Pos #
335
Master_SSL_Allowed No
341
Seconds_Behind_Master #
342
Master_SSL_Verify_Server_Cert No
346
Last_SQL_Error Table definition on master and slave does not match: Column 3 type mismatch - received type 16, test.t6 has type 3
347
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=3;
352
**** Diff Table Def End ****
353
**** Extra Colums Start ****
354
*** Create t7 on slave ***
357
CREATE TABLE t7 (a INT KEY, b BLOB, c CHAR(5),
358
d TIMESTAMP NULL DEFAULT '0000-00-00 00:00:00',
359
e CHAR(20) DEFAULT 'Extra Column Testing')
361
*** Create t7 on Master ***
362
CREATE TABLE t7 (a INT PRIMARY KEY, b BLOB, c CHAR(5)
367
*** Master Data Insert ***
369
set @b1 = concat(@b1,@b1);
370
INSERT INTO t7 () VALUES(1,@b1,'Kyle'),(2,@b1,'JOE'),(3,@b1,'QA');
371
SELECT * FROM t7 ORDER BY a;
376
*** Select from slave ***
377
SELECT * FROM t7 ORDER BY a;
379
1 b1b1 Kyle 0000-00-00 00:00:00 Extra Column Testing
380
2 b1b1 JOE 0000-00-00 00:00:00 Extra Column Testing
381
3 b1b1 QA 0000-00-00 00:00:00 Extra Column Testing
384
*** Create t8 on slave ***
387
CREATE TABLE t8 (a INT KEY, b BLOB, c CHAR(5),
388
d TIMESTAMP NULL DEFAULT '0000-00-00 00:00:00',
389
e INT)ENGINE='InnoDB';
390
*** Create t8 on Master ***
391
CREATE TABLE t8 (a INT PRIMARY KEY, b BLOB, c CHAR(5)
396
*** Master Data Insert ***
397
set @b1 = 'b1b1b1b1';
398
set @b1 = concat(@b1,@b1);
399
INSERT INTO t8 () VALUES(1,@b1,'Kyle'),(2,@b1,'JOE'),(3,@b1,'QA');
404
CREATE TABLE t9 (a INT KEY, b BLOB, c CHAR(5),
406
e INT NOT NULL) ENGINE='InnoDB';
407
*** Create t9 on Master ***
408
CREATE TABLE t9 (a INT PRIMARY KEY, b BLOB, c CHAR(5)
413
*** Master Data Insert ***
414
set @b1 = 'b1b1b1b1';
415
set @b1 = concat(@b1,@b1);
416
INSERT INTO t9 () VALUES(1,@b1,'Kyle'),(2,@b1,'JOE'),(3,@b1,'QA');
419
Master_Host 127.0.0.1
423
Master_Log_File master-bin.000001
424
Read_Master_Log_Pos #
427
Relay_Master_Log_File master-bin.000001
433
Replicate_Ignore_Table #
434
Replicate_Wild_Do_Table
435
Replicate_Wild_Ignore_Table
437
Last_Error Could not execute Write_rows event on table test.t9; Field 'e' doesn't have a default value, Error_code: 1364; handler error HA_ERR_ROWS_EVENT_APPLY; the event's master log master-bin.000001, end_log_pos 331
439
Exec_Master_Log_Pos #
444
Master_SSL_Allowed No
450
Seconds_Behind_Master #
451
Master_SSL_Verify_Server_Cert No
455
Last_SQL_Error Could not execute Write_rows event on table test.t9; Field 'e' doesn't have a default value, Error_code: 1364; handler error HA_ERR_ROWS_EVENT_APPLY; the event's master log master-bin.000001, end_log_pos 331
456
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
458
*** Create t10 on slave ***
461
CREATE TABLE t10 (a INT KEY, b BLOB, f DOUBLE DEFAULT '233',
462
c CHAR(5), e INT DEFAULT '1')ENGINE='InnoDB';
463
*** Create t10 on Master ***
464
CREATE TABLE t10 (a INT PRIMARY KEY, b BLOB, c CHAR(5)
469
*** Master Data Insert ***
470
set @b1 = 'b1b1b1b1';
471
set @b1 = concat(@b1,@b1);
472
INSERT INTO t10 () VALUES(1,@b1,'Kyle'),(2,@b1,'JOE'),(3,@b1,'QA');
473
********************************************
474
*** Expect slave to fail with Error 1522 ***
475
********************************************
478
Master_Host 127.0.0.1
482
Master_Log_File master-bin.000001
483
Read_Master_Log_Pos #
486
Relay_Master_Log_File master-bin.000001
492
Replicate_Ignore_Table #
493
Replicate_Wild_Do_Table
494
Replicate_Wild_Ignore_Table
496
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 254, test.t10 has type 5
498
Exec_Master_Log_Pos #
503
Master_SSL_Allowed No
509
Seconds_Behind_Master #
510
Master_SSL_Verify_Server_Cert No
514
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 254, test.t10 has type 5
515
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
519
*** Create t11 on slave ***
522
CREATE TABLE t11 (a INT KEY, b BLOB, f TEXT,
523
c CHAR(5) DEFAULT 'test', e INT DEFAULT '1')ENGINE='InnoDB';
524
*** Create t11 on Master ***
525
CREATE TABLE t11 (a INT PRIMARY KEY, b BLOB, c VARCHAR(254)
530
*** Master Data Insert ***
531
set @b1 = 'b1b1b1b1';
532
set @b1 = concat(@b1,@b1);
533
INSERT INTO t11 () VALUES(1,@b1,'Kyle'),(2,@b1,'JOE'),(3,@b1,'QA');
534
********************************************
535
*** Expect slave to fail with Error 1522 ***
536
********************************************
539
Master_Host 127.0.0.1
543
Master_Log_File master-bin.000001
544
Read_Master_Log_Pos #
547
Relay_Master_Log_File master-bin.000001
553
Replicate_Ignore_Table #
554
Replicate_Wild_Do_Table
555
Replicate_Wild_Ignore_Table
557
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 15, test.t11 has type 252
559
Exec_Master_Log_Pos #
564
Master_SSL_Allowed No
570
Seconds_Behind_Master #
571
Master_SSL_Verify_Server_Cert No
575
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 15, test.t11 has type 252
576
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
580
*** Create t12 on slave ***
583
CREATE TABLE t12 (a INT KEY, b BLOB, f TEXT,
584
c CHAR(5) DEFAULT 'test', e INT DEFAULT '1')ENGINE='InnoDB';
585
*** Create t12 on Master ***
586
CREATE TABLE t12 (a INT PRIMARY KEY, b BLOB, c BLOB
591
*** Master Data Insert ***
592
set @b1 = 'b1b1b1b1';
593
set @b1 = concat(@b1,@b1);
594
INSERT INTO t12 () VALUES(1,@b1,'Kyle'),(2,@b1,'JOE'),(3,@b1,'QA');
595
SELECT * FROM t12 ORDER BY a;
597
1 b1b1b1b1b1b1b1b1 Kyle
598
2 b1b1b1b1b1b1b1b1 JOE
599
3 b1b1b1b1b1b1b1b1 QA
600
*** Select on Slave ***
601
SELECT * FROM t12 ORDER BY a;
603
1 b1b1b1b1b1b1b1b1 Kyle test 1
604
2 b1b1b1b1b1b1b1b1 JOE test 1
605
3 b1b1b1b1b1b1b1b1 QA test 1
608
**** Extra Colums End ****
609
*** BUG 22177 Start ***
610
*** Create t13 on slave ***
613
CREATE TABLE t13 (a INT KEY, b BLOB, c CHAR(5),
615
e TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP
617
*** Create t13 on Master ***
618
CREATE TABLE t13 (a INT PRIMARY KEY, b BLOB, c CHAR(5)
623
*** Master Data Insert ***
624
set @b1 = 'b1b1b1b1';
625
set @b1 = concat(@b1,@b1);
626
INSERT INTO t13 () VALUES(1,@b1,'Kyle'),(2,@b1,'JOE'),(3,@b1,'QA');
627
SELECT * FROM t13 ORDER BY a;
629
1 b1b1b1b1b1b1b1b1 Kyle
630
2 b1b1b1b1b1b1b1b1 JOE
631
3 b1b1b1b1b1b1b1b1 QA
632
*** Select on Slave ****
633
SELECT * FROM t13 ORDER BY a;
635
1 b1b1b1b1b1b1b1b1 Kyle 1 CURRENT_TIMESTAMP
636
2 b1b1b1b1b1b1b1b1 JOE 1 CURRENT_TIMESTAMP
637
3 b1b1b1b1b1b1b1b1 QA 1 CURRENT_TIMESTAMP
641
*** Alter Master Table Testing Start ***
642
*** Create t14 on slave ***
645
CREATE TABLE t14 (c1 INT KEY, c4 BLOB, c5 CHAR(5),
647
c7 TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP
649
*** Create t14 on Master ***
650
CREATE TABLE t14 (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5)
655
*** Master Data Insert ***
656
ALTER TABLE t14 ADD COLUMN c2 DECIMAL(8,2) AFTER c1;
657
ALTER TABLE t14 ADD COLUMN c3 TEXT AFTER c2;
658
set @b1 = 'b1b1b1b1';
659
set @b1 = concat(@b1,@b1);
660
INSERT INTO t14 () VALUES(1,1.00,'Replication Testing Extra Col',@b1,'Kyle'),
661
(2,2.00,'This Test Should work',@b1,'JOE'),
662
(3,3.00,'If is does not, I will open a bug',@b1,'QA');
663
SELECT * FROM t14 ORDER BY c1;
665
1 1.00 Replication Testing Extra Col b1b1b1b1b1b1b1b1 Kyle
666
2 2.00 This Test Should work b1b1b1b1b1b1b1b1 JOE
667
3 3.00 If is does not, I will open a bug b1b1b1b1b1b1b1b1 QA
668
*** Select on Slave ****
669
SELECT * FROM t14 ORDER BY c1;
671
1 1.00 Replication Testing Extra Col b1b1b1b1b1b1b1b1 Kyle 1 CURRENT_TIMESTAMP
672
2 2.00 This Test Should work b1b1b1b1b1b1b1b1 JOE 1 CURRENT_TIMESTAMP
673
3 3.00 If is does not, I will open a bug b1b1b1b1b1b1b1b1 QA 1 CURRENT_TIMESTAMP
674
*** Create t14a on slave ***
677
CREATE TABLE t14a (c1 INT KEY, c4 BLOB, c5 CHAR(5),
679
c7 TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP
681
*** Create t14a on Master ***
682
CREATE TABLE t14a (c1 INT PRIMARY KEY, c4 BLOB, c5 CHAR(5)
687
*** Master Data Insert ***
688
set @b1 = 'b1b1b1b1';
689
set @b1 = concat(@b1,@b1);
690
INSERT INTO t14a () VALUES(1,@b1,'Kyle'),
693
SELECT * FROM t14a ORDER BY c1;
695
1 b1b1b1b1b1b1b1b1 Kyle
696
2 b1b1b1b1b1b1b1b1 JOE
697
3 b1b1b1b1b1b1b1b1 QA
698
*** Select on Slave ****
699
SELECT * FROM t14a ORDER BY c1;
701
1 b1b1b1b1b1b1b1b1 Kyle 1 CURRENT_TIMESTAMP
702
2 b1b1b1b1b1b1b1b1 JOE 1 CURRENT_TIMESTAMP
703
3 b1b1b1b1b1b1b1b1 QA 1 CURRENT_TIMESTAMP
706
*** Master Drop c5 ***
707
ALTER TABLE t14a DROP COLUMN c5;
711
*** Master Data Insert ***
712
set @b1 = 'b1b1b1b1';
713
set @b1 = concat(@b1,@b1);
714
INSERT INTO t14a () VALUES(4,@b1),
717
SELECT * FROM t14a ORDER BY c1;
725
*** Select on Slave ****
726
SELECT * FROM t14a ORDER BY c1;
728
1 b1b1b1b1b1b1b1b1 Kyle 1 CURRENT_TIMESTAMP
729
2 b1b1b1b1b1b1b1b1 JOE 1 CURRENT_TIMESTAMP
730
3 b1b1b1b1b1b1b1b1 QA 1 CURRENT_TIMESTAMP
731
4 b1b1b1b1b1b1b1b1 NULL 1 CURRENT_TIMESTAMP
732
5 b1b1b1b1b1b1b1b1 NULL 1 CURRENT_TIMESTAMP
733
6 b1b1b1b1b1b1b1b1 NULL 1 CURRENT_TIMESTAMP
734
*** connect to master and drop columns ***
735
ALTER TABLE t14 DROP COLUMN c2;
736
ALTER TABLE t14 DROP COLUMN c4;
737
*** Select from Master ***
738
SELECT * FROM t14 ORDER BY c1;
740
1 Replication Testing Extra Col Kyle
741
2 This Test Should work JOE
742
3 If is does not, I will open a bug QA
743
*** Select from Slave ***
744
SELECT * FROM t14 ORDER BY c1;
746
1 Replication Testing Extra Col Kyle 1 CURRENT_TIMESTAMP
747
2 This Test Should work JOE 1 CURRENT_TIMESTAMP
748
3 If is does not, I will open a bug QA 1 CURRENT_TIMESTAMP
751
*** Create t15 on slave ***
754
CREATE TABLE t15 (c1 INT KEY, c2 DECIMAL(8,2), c3 TEXT,
757
c7 TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP
759
*** Create t15 on Master ***
760
CREATE TABLE t15 (c1 INT PRIMARY KEY, c2 DECIMAL(8,2), c3 TEXT,
761
c4 BLOB, c5 CHAR(5)) ENGINE='InnoDB';
765
*** Master Data Insert ***
766
set @b1 = 'b1b1b1b1';
767
set @b1 = concat(@b1,@b1);
768
INSERT INTO t15 () VALUES(1,1.00,'Replication Testing Extra Col',@b1,'Kyle'),
769
(2,2.00,'This Test Should work',@b1,'JOE'),
770
(3,3.00,'If is does not, I will open a bug',@b1,'QA');
771
SELECT * FROM t15 ORDER BY c1;
773
1 1.00 Replication Testing Extra Col b1b1b1b1b1b1b1b1 Kyle
774
2 2.00 This Test Should work b1b1b1b1b1b1b1b1 JOE
775
3 3.00 If is does not, I will open a bug b1b1b1b1b1b1b1b1 QA
776
*** Select on Slave ****
777
SELECT * FROM t15 ORDER BY c1;
779
1 1.00 Replication Testing Extra Col b1b1b1b1b1b1b1b1 Kyle 1 CURRENT_TIMESTAMP
780
2 2.00 This Test Should work b1b1b1b1b1b1b1b1 JOE 1 CURRENT_TIMESTAMP
781
3 3.00 If is does not, I will open a bug b1b1b1b1b1b1b1b1 QA 1 CURRENT_TIMESTAMP
782
*** Add column on master that is a Extra on Slave ***
783
ALTER TABLE t15 ADD COLUMN c6 INT AFTER c5;
784
********************************************
785
*** Expect slave to fail with Error 1060 ***
786
********************************************
789
Master_Host 127.0.0.1
793
Master_Log_File master-bin.000001
794
Read_Master_Log_Pos #
797
Relay_Master_Log_File master-bin.000001
803
Replicate_Ignore_Table #
804
Replicate_Wild_Do_Table
805
Replicate_Wild_Ignore_Table
807
Last_Error Error 'Duplicate column name 'c6'' on query. Default database: 'test'. Query: 'ALTER TABLE t15 ADD COLUMN c6 INT AFTER c5'
809
Exec_Master_Log_Pos #
814
Master_SSL_Allowed No
820
Seconds_Behind_Master #
821
Master_SSL_Verify_Server_Cert No
825
Last_SQL_Error Error 'Duplicate column name 'c6'' on query. Default database: 'test'. Query: 'ALTER TABLE t15 ADD COLUMN c6 INT AFTER c5'
826
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;
828
*** Try to insert in master ****
829
INSERT INTO t15 () VALUES(5,2.00,'Replication Testing',@b1,'Buda',2);
830
SELECT * FROM t15 ORDER BY c1;
832
1 1.00 Replication Testing Extra Col b1b1b1b1b1b1b1b1 Kyle NULL
833
2 2.00 This Test Should work b1b1b1b1b1b1b1b1 JOE NULL
834
3 3.00 If is does not, I will open a bug b1b1b1b1b1b1b1b1 QA NULL
835
5 2.00 Replication Testing b1b1b1b1b1b1b1b1 Buda 2
836
*** Try to select from slave ****
837
SELECT * FROM t15 ORDER BY c1;
839
1 1.00 Replication Testing Extra Col b1b1b1b1b1b1b1b1 Kyle 1 CURRENT_TIMESTAMP
840
2 2.00 This Test Should work b1b1b1b1b1b1b1b1 JOE 1 CURRENT_TIMESTAMP
841
3 3.00 If is does not, I will open a bug b1b1b1b1b1b1b1b1 QA 1 CURRENT_TIMESTAMP
842
5 2.00 Replication Testing b1b1b1b1b1b1b1b1 Buda 2 CURRENT_TIMESTAMP
843
*** DROP TABLE t15 ***
845
*** Create t16 on slave ***
848
CREATE TABLE t16 (c1 INT KEY, c2 DECIMAL(8,2), c3 TEXT,
851
c7 TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP
853
*** Create t16 on Master ***
854
CREATE TABLE t16 (c1 INT PRIMARY KEY, c2 DECIMAL(8,2), c3 TEXT,
855
c4 BLOB, c5 CHAR(5))ENGINE='InnoDB';
859
*** Master Data Insert ***
860
set @b1 = 'b1b1b1b1';
861
set @b1 = concat(@b1,@b1);
862
INSERT INTO t16 () VALUES(1,1.00,'Replication Testing Extra Col',@b1,'Kyle'),
863
(2,2.00,'This Test Should work',@b1,'JOE'),
864
(3,3.00,'If is does not, I will open a bug',@b1,'QA');
865
SELECT * FROM t16 ORDER BY c1;
867
1 1.00 Replication Testing Extra Col b1b1b1b1b1b1b1b1 Kyle
868
2 2.00 This Test Should work b1b1b1b1b1b1b1b1 JOE
869
3 3.00 If is does not, I will open a bug b1b1b1b1b1b1b1b1 QA
870
*** Select on Slave ****
871
SELECT * FROM t16 ORDER BY c1;
873
1 1.00 Replication Testing Extra Col b1b1b1b1b1b1b1b1 Kyle 1 CURRENT_TIMESTAMP
874
2 2.00 This Test Should work b1b1b1b1b1b1b1b1 JOE 1 CURRENT_TIMESTAMP
875
3 3.00 If is does not, I will open a bug b1b1b1b1b1b1b1b1 QA 1 CURRENT_TIMESTAMP
876
*** Add Partition on master ***
877
ALTER TABLE t16 PARTITION BY KEY(c1) PARTITIONS 4;
878
INSERT INTO t16 () VALUES(4,1.00,'Replication Rocks',@b1,'Omer');
879
SHOW CREATE TABLE t16;
881
t16 CREATE TABLE `t16` (
882
`c1` int(11) NOT NULL,
883
`c2` decimal(8,2) DEFAULT NULL,
886
`c5` char(5) DEFAULT NULL,
888
) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (c1) PARTITIONS 4 */
889
*** Show table on Slave ****
890
SHOW CREATE TABLE t16;
892
t16 CREATE TABLE `t16` (
893
`c1` int(11) NOT NULL,
894
`c2` decimal(8,2) DEFAULT NULL,
897
`c5` char(5) DEFAULT NULL,
898
`c6` int(11) DEFAULT '1',
899
`c7` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
901
) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (c1) PARTITIONS 4 */
902
*** DROP TABLE t16 ***
904
*** Alter Master End ***
905
*** Create t17 on slave ***
908
CREATE TABLE t17 (a SMALLINT, b INT PRIMARY KEY, c CHAR(5),
909
d FLOAT DEFAULT '2.00',
910
e CHAR(5) DEFAULT 'TEST2')
912
*** Create t17 on Master ***
913
CREATE TABLE t17 (a BIGINT PRIMARY KEY, b INT, c CHAR(10)
918
*** Master Data Insert ***
919
INSERT INTO t17 () VALUES(9223372036854775807,2,'Kyle, TEX');
920
********************************************
921
*** Expect slave to fail with Error 1522 ***
922
********************************************
925
Master_Host 127.0.0.1
929
Master_Log_File master-bin.000001
930
Read_Master_Log_Pos #
933
Relay_Master_Log_File master-bin.000001
939
Replicate_Ignore_Table #
940
Replicate_Wild_Do_Table
941
Replicate_Wild_Ignore_Table
943
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 8, test.t17 has type 2
945
Exec_Master_Log_Pos #
950
Master_SSL_Allowed No
956
Seconds_Behind_Master #
957
Master_SSL_Verify_Server_Cert No
961
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 8, test.t17 has type 2
962
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
964
** DROP table t17 ***