From: Date: March 22 2007 1:17pm Subject: bk commit into 5.1 tree (tomas:1.2447) BUG#27044 List-Archive: http://lists.mysql.com/commits/22625 X-Bug: 27044 Message-Id: <20070322121714.22EFD2FB0F4@whalegate.ndb.mysql.com> Below is the list of changes that have just been committed into a local 5.1 repository of tomas. When tomas does a push these changes will be propagated to the main repository and, within 24 hours after the push, to the public repository. For information on how to access the public repository see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html ChangeSet@stripped, 2007-03-22 13:17:08+01:00, tomas@stripped +2 -0 BUG#27044 bug fix of 27320 fixes this, added test case mysql-test/r/rpl_ndb_do_table.result@stripped, 2007-03-22 13:17:06+01:00, tomas@stripped +4 -0 BUG#27044 bug fix of 27320 fixes this, added test case mysql-test/t/rpl_ndb_do_table.test@stripped, 2007-03-22 13:17:06+01:00, tomas@stripped +14 -0 BUG#27044 bug fix of 27320 fixes this, added test case # This is a BitKeeper patch. What follows are the unified diffs for the # set of deltas contained in the patch. The rest of the patch, the part # that BitKeeper cares about, is below these diffs. # User: tomas # Host: whalegate.ndb.mysql.com # Root: /home/tomas/mysql-5.1-telco-gca --- 1.2/mysql-test/r/rpl_ndb_do_table.result 2007-01-04 04:08:31 +01:00 +++ 1.3/mysql-test/r/rpl_ndb_do_table.result 2007-03-22 13:17:06 +01:00 @@ -19,4 +19,8 @@ SELECT COUNT(*) FROM t1; COUNT(*) 3 +INSERT INTO t1 VALUES (3, repeat('bad',1)); +ERROR 23000: Duplicate entry '3' for key 'PRIMARY' +INSERT INTO t1 VALUES (3, repeat('bad too',1)); +ERROR 23000: Duplicate entry '3' for key 'PRIMARY' DROP TABLE IF EXISTS t1, t2; --- 1.2/mysql-test/t/rpl_ndb_do_table.test 2007-01-04 04:08:22 +01:00 +++ 1.3/mysql-test/t/rpl_ndb_do_table.test 2007-03-22 13:17:06 +01:00 @@ -27,6 +27,20 @@ SHOW TABLES; SELECT COUNT(*) FROM t1; +# +# Bug #27044 replicated with unique field ndb table allows dup key inserts +# +connection master; + +--error ER_DUP_ENTRY_WITH_KEY_NAME +INSERT INTO t1 VALUES (3, repeat('bad',1)); + +connection slave; +--error ER_DUP_ENTRY_WITH_KEY_NAME +INSERT INTO t1 VALUES (3, repeat('bad too',1)); + +# cleanup + connection master; DROP TABLE IF EXISTS t1, t2; --sync_slave_with_master