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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
f159d066
Commit
f159d066
authored
Apr 11, 2007
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - bug#27748
testcase
parent
05285a62
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
0 deletions
+58
-0
mysql-test/r/rpl_ndb_basic.result
mysql-test/r/rpl_ndb_basic.result
+27
-0
mysql-test/t/rpl_ndb_basic.test
mysql-test/t/rpl_ndb_basic.test
+31
-0
No files found.
mysql-test/r/rpl_ndb_basic.result
View file @
f159d066
...
...
@@ -24,6 +24,33 @@ nid nom prenom
select * from t1 order by nid;
nid nom prenom
1 XYZ2 ABC2
delete from t1;
insert into t1 values(1,"AA", "AA");
insert into t1 values(2,"BB", "BB");
insert into t1 values(3,"CC", "CC");
insert into t1 values(4,"DD", "DD");
begin;
delete from t1 where nid = 1;
insert into t1 values (1,"A2", "A2");
update t1 set nom="B2" where nid = 2;
delete from t1 where nid = 2;
update t1 set nom = "D2" where nid = 4;
delete from t1 where nid = 4;
insert into t1 values (4, "D3", "D3");
update t1 set nom = "D4" where nid = 4;
insert into t1 values (5, "EE", "EE");
delete from t1 where nid = 5;
commit;
select * from t1 order by 1;
nid nom prenom
1 A2 A2
3 CC CC
4 D4 D3
select * from t1 order by 1;
nid nom prenom
1 A2 A2
3 CC CC
4 D4 D3
DROP table t1;
CREATE TABLE `t1` ( `nid` int(11) NOT NULL default '0',
`nom` char(4) default NULL,
...
...
mysql-test/t/rpl_ndb_basic.test
View file @
f159d066
...
...
@@ -35,6 +35,37 @@ select * from t1 order by nid;
# Bug #11087 would have row with nid 2 missing
select
*
from
t1
order
by
nid
;
--
connection
master
delete
from
t1
;
insert
into
t1
values
(
1
,
"AA"
,
"AA"
);
insert
into
t1
values
(
2
,
"BB"
,
"BB"
);
insert
into
t1
values
(
3
,
"CC"
,
"CC"
);
insert
into
t1
values
(
4
,
"DD"
,
"DD"
);
begin
;
# delete+insert = update
delete
from
t1
where
nid
=
1
;
insert
into
t1
values
(
1
,
"A2"
,
"A2"
);
# update+delete = delete
update
t1
set
nom
=
"B2"
where
nid
=
2
;
delete
from
t1
where
nid
=
2
;
# multi-update
update
t1
set
nom
=
"D2"
where
nid
=
4
;
delete
from
t1
where
nid
=
4
;
insert
into
t1
values
(
4
,
"D3"
,
"D3"
);
update
t1
set
nom
=
"D4"
where
nid
=
4
;
# insert+delete = nothing
insert
into
t1
values
(
5
,
"EE"
,
"EE"
);
delete
from
t1
where
nid
=
5
;
commit
;
select
*
from
t1
order
by
1
;
--
sync_slave_with_master
--
connection
slave
select
*
from
t1
order
by
1
;
--
connection
master
DROP
table
t1
;
...
...
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