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
15155fff
Commit
15155fff
authored
Nov 29, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug#24303 Wrong result for UPDATE IGNORE for NDB table: Added test case
parent
01e550d0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
mysql-test/r/ndb_update.result
mysql-test/r/ndb_update.result
+8
-0
mysql-test/t/ndb_update.test
mysql-test/t/ndb_update.test
+4
-0
No files found.
mysql-test/r/ndb_update.result
View file @
15155fff
...
@@ -17,6 +17,14 @@ pk1 b c
...
@@ -17,6 +17,14 @@ pk1 b c
0 0 0
0 0 0
2 2 2
2 2 2
4 1 1
4 1 1
UPDATE t1 set pk1 = 4 where pk1 = 2;
ERROR 23000: Duplicate entry '4' for key 1
UPDATE IGNORE t1 set pk1 = 4 where pk1 = 2;
select * from t1 order by pk1;
pk1 b c
0 0 0
2 2 2
4 1 1
UPDATE t1 set pk1 = 1, c = 2 where pk1 = 4;
UPDATE t1 set pk1 = 1, c = 2 where pk1 = 4;
ERROR 23000: Duplicate entry '' for key 0
ERROR 23000: Duplicate entry '' for key 0
select * from t1 order by pk1;
select * from t1 order by pk1;
...
...
mysql-test/t/ndb_update.test
View file @
15155fff
...
@@ -23,6 +23,10 @@ UPDATE t1 set b = c;
...
@@ -23,6 +23,10 @@ UPDATE t1 set b = c;
select
*
from
t1
order
by
pk1
;
select
*
from
t1
order
by
pk1
;
UPDATE
t1
set
pk1
=
4
where
pk1
=
1
;
UPDATE
t1
set
pk1
=
4
where
pk1
=
1
;
select
*
from
t1
order
by
pk1
;
select
*
from
t1
order
by
pk1
;
--
error
1062
UPDATE
t1
set
pk1
=
4
where
pk1
=
2
;
UPDATE
IGNORE
t1
set
pk1
=
4
where
pk1
=
2
;
select
*
from
t1
order
by
pk1
;
--
error
1062
--
error
1062
UPDATE
t1
set
pk1
=
1
,
c
=
2
where
pk1
=
4
;
UPDATE
t1
set
pk1
=
1
,
c
=
2
where
pk1
=
4
;
select
*
from
t1
order
by
pk1
;
select
*
from
t1
order
by
pk1
;
...
...
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