Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
f7e44284
Commit
f7e44284
authored
17 years ago
by
tomas@whalegate.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#27044 bug fix of 27320 fixes this, added test case
parent
8791870d
Branches unavailable
Tags unavailable
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
mysql-test/r/rpl_ndb_do_table.result
mysql-test/r/rpl_ndb_do_table.result
+4
-0
mysql-test/t/rpl_ndb_do_table.test
mysql-test/t/rpl_ndb_do_table.test
+14
-0
No files found.
mysql-test/r/rpl_ndb_do_table.result
View file @
f7e44284
...
@@ -19,4 +19,8 @@ t1
...
@@ -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;
This diff is collapsed.
Click to expand it.
mysql-test/t/rpl_ndb_do_table.test
View file @
f7e44284
...
@@ -27,6 +27,20 @@ INSERT INTO t2 VALUES(3, repeat('ghi',3000));
...
@@ -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
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment