mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
BUG#27044 bug fix of 27320 fixes this, added test case
This commit is contained in:
@@ -19,4 +19,8 @@ t1
|
|||||||
SELECT COUNT(*) FROM t1;
|
SELECT COUNT(*) FROM t1;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
3
|
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;
|
DROP TABLE IF EXISTS t1, t2;
|
||||||
|
@@ -27,6 +27,20 @@ INSERT INTO t2 VALUES(3, repeat('ghi',3000));
|
|||||||
SHOW TABLES;
|
SHOW TABLES;
|
||||||
SELECT COUNT(*) FROM t1;
|
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;
|
connection master;
|
||||||
DROP TABLE IF EXISTS t1, t2;
|
DROP TABLE IF EXISTS t1, t2;
|
||||||
--sync_slave_with_master
|
--sync_slave_with_master
|
||||||
|
Reference in New Issue
Block a user