~ubuntu-branches/ubuntu/natty/mysql-5.1/natty-proposed

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/r/rpl_row_basic_3innodb.result

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 08:30:45 UTC
  • mfrom: (1.4.1)
  • Revision ID: package-import@ubuntu.com-20120222083045-2rd53r4bnyx7qus4
Tags: 5.1.61-0ubuntu0.11.04.1
* SECURITY UPDATE: Update to 5.1.61 to fix multiple security issues
  (LP: #937869)
  - http://www.oracle.com/technetwork/topics/security/cpujan2012-366304.html
  - CVE-2011-2262
  - CVE-2012-0075
  - CVE-2012-0112
  - CVE-2012-0113
  - CVE-2012-0114
  - CVE-2012-0115
  - CVE-2012-0116
  - CVE-2012-0117
  - CVE-2012-0118
  - CVE-2012-0119
  - CVE-2012-0120
  - CVE-2012-0484
  - CVE-2012-0485
  - CVE-2012-0486
  - CVE-2012-0487
  - CVE-2012-0488
  - CVE-2012-0489
  - CVE-2012-0490
  - CVE-2012-0491
  - CVE-2012-0492
  - CVE-2012-0493
  - CVE-2012-0494
  - CVE-2012-0495
  - CVE-2012-0496

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
stop slave;
2
 
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
3
 
reset master;
4
 
reset slave;
5
 
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
6
 
start slave;
 
1
include/master-slave.inc
 
2
[connection master]
7
3
CREATE TABLE t1 (C1 CHAR(1), C2 CHAR(1), INDEX (C1)) ENGINE = 'INNODB'  ;
8
4
SELECT * FROM t1;
9
5
C1      C2
422
418
**** Test for BUG#31552 ****
423
419
**** On Master ****
424
420
DELETE FROM t1;
425
 
**** Resetting master and slave ****
426
 
include/stop_slave.inc
427
 
RESET SLAVE;
428
 
RESET MASTER;
429
 
include/start_slave.inc
 
421
include/rpl_reset.inc
430
422
**** On Master ****
431
423
INSERT INTO t1 VALUES ('K','K'), ('L','L'), ('M','M');
432
424
**** On Master ****
436
428
SELECT COUNT(*) FROM t1 ORDER BY c1,c2;
437
429
COUNT(*)        0
438
430
set @@global.slave_exec_mode= default;
439
 
Checking that both slave threads are running.
 
431
include/check_slave_is_running.inc
440
432
SELECT COUNT(*) FROM t1 ORDER BY c1,c2;
441
433
COUNT(*)        0
442
434
**** Test for BUG#37076 ****
478
470
[expecting slave to replicate correctly]
479
471
INSERT INTO t1 VALUES (1, "", 1);
480
472
INSERT INTO t1 VALUES (2, repeat(_utf8'a', 16), 2);
481
 
Comparing tables master:test.t1 and slave:test.t1
 
473
include/diff_tables.inc [master:t1, slave:t1]
482
474
[expecting slave to replicate correctly]
483
475
INSERT INTO t2 VALUES (1, "", 1);
484
476
INSERT INTO t2 VALUES (2, repeat(_utf8'a', 16), 2);
485
 
Comparing tables master:test.t2 and slave:test.t2
 
477
include/diff_tables.inc [master:t2, slave:t2]
486
478
[expecting slave to stop]
487
479
INSERT INTO t3 VALUES (1, "", 1);
488
480
INSERT INTO t3 VALUES (2, repeat(_utf8'a', 128), 2);
489
 
Last_SQL_Error = Table definition on master and slave does not match: Column 1 size mismatch - master has size 384, test.t3 on slave has size 49. Master's column size should be <= the slave's column size.
490
 
RESET MASTER;
491
 
STOP SLAVE;
492
 
RESET SLAVE;
493
 
START SLAVE;
 
481
call mtr.add_suppression("Slave SQL.*Table definition on master and slave does not match: Column 1 size mismatch.* Error_code: 1535");
 
482
call mtr.add_suppression("Slave SQL.*Could not execute Delete_rows event on table test.t1.* Error_code: 1032");
 
483
include/wait_for_slave_sql_error.inc [errno=1535]
 
484
Last_SQL_Error = 'Table definition on master and slave does not match: Column 1 size mismatch - master has size 384, test.t3 on slave has size 49. Master's column size should be <= the slave's column size.'
 
485
include/rpl_reset.inc
494
486
[expecting slave to replicate correctly]
495
487
INSERT INTO t4 VALUES (1, "", 1);
496
488
INSERT INTO t4 VALUES (2, repeat(_utf8'a', 128), 2);
497
 
Comparing tables master:test.t4 and slave:test.t4
 
489
include/diff_tables.inc [master:t4, slave:t4]
498
490
[expecting slave to stop]
499
491
INSERT INTO t5 VALUES (1, "", 1);
500
492
INSERT INTO t5 VALUES (2, repeat(_utf8'a', 255), 2);
501
 
Last_SQL_Error = Table definition on master and slave does not match: Column 1 size mismatch - master has size 765, test.t5 on slave has size 49. Master's column size should be <= the slave's column size.
502
 
RESET MASTER;
503
 
STOP SLAVE;
504
 
RESET SLAVE;
505
 
START SLAVE;
 
493
include/wait_for_slave_sql_error.inc [errno=1535]
 
494
Last_SQL_Error = 'Table definition on master and slave does not match: Column 1 size mismatch - master has size 765, test.t5 on slave has size 49. Master's column size should be <= the slave's column size.'
 
495
include/rpl_reset.inc
506
496
[expecting slave to stop]
507
497
INSERT INTO t6 VALUES (1, "", 1);
508
498
INSERT INTO t6 VALUES (2, repeat(_utf8'a', 255), 2);
509
 
Last_SQL_Error = Table definition on master and slave does not match: Column 1 size mismatch - master has size 765, test.t6 on slave has size 385. Master's column size should be <= the slave's column size.
510
 
RESET MASTER;
511
 
STOP SLAVE;
512
 
RESET SLAVE;
513
 
START SLAVE;
 
499
include/wait_for_slave_sql_error.inc [errno=1535]
 
500
Last_SQL_Error = 'Table definition on master and slave does not match: Column 1 size mismatch - master has size 765, test.t6 on slave has size 385. Master's column size should be <= the slave's column size.'
 
501
include/rpl_reset.inc
514
502
[expecting slave to replicate correctly]
515
503
INSERT INTO t7 VALUES (1, "", 1);
516
504
INSERT INTO t7 VALUES (2, repeat(_utf8'a', 255), 2);
517
 
Comparing tables master:test.t7 and slave:test.t7
 
505
include/diff_tables.inc [master:t7, slave:t7]
518
506
drop table t1, t2, t3, t4, t5, t6, t7;
519
507
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE='INNODB' ;
520
508
INSERT INTO t1 VALUES (1), (2), (3);
521
509
UPDATE t1 SET a = 10;
522
510
ERROR 23000: Duplicate entry '10' for key 'PRIMARY'
523
511
INSERT INTO t1 VALUES (4);
524
 
Comparing tables master:test.t1 and slave:test.t1
 
512
include/diff_tables.inc [master:t1, slave:t1]
525
513
drop table t1;
526
514
DROP TABLE IF EXISTS t1, t2;
527
515
CREATE TABLE t1 (
575
563
DELETE FROM t2 WHERE `pk` < 7 LIMIT 1;
576
564
UPDATE t1 SET `int_key` = 4 ORDER BY `pk` LIMIT 6;
577
565
*** results: t2 must be consistent ****
578
 
Comparing tables master:test.t2 and master:test.t2
 
566
include/diff_tables.inc [master:t2, slave:t2]
579
567
DROP TABLE t1, t2;
580
568
EOF OF TESTS
581
569
CREATE TABLE t1 (a int) ENGINE='INNODB' ;
591
579
INSERT INTO t1 ( a ) VALUES ( 3 );
592
580
UPDATE t1 SET a = 0 WHERE a < 4;
593
581
UPDATE t1 SET a = 8 WHERE a < 5;
594
 
Comparing tables master:test.t1 and slave:test.t1
 
582
include/diff_tables.inc [master:t1, slave:t1]
595
583
drop table t1;
596
584
CREATE TABLE t1 (a bit) ENGINE='INNODB' ;
597
585
INSERT IGNORE INTO t1 VALUES (NULL);
633
621
UPDATE t1 SET a = 8 WHERE a = 5 LIMIT 2;
634
622
INSERT INTO t1 ( a ) VALUES ( 1 );
635
623
UPDATE t1 SET a = 9 WHERE a < 5 LIMIT 3;
636
 
Comparing tables master:test.t1 and slave:test.t1
 
624
include/diff_tables.inc [master:t1, slave:t1]
637
625
drop table t1;
 
626
include/rpl_end.inc