mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
bug#24303 Wrong result for UPDATE IGNORE for NDB table: Added test case
This commit is contained in:
parent
b045a81516
commit
ae0d7e87d9
2 changed files with 12 additions and 0 deletions
|
@ -17,6 +17,14 @@ pk1 b c
|
|||
0 0 0
|
||||
2 2 2
|
||||
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;
|
||||
ERROR 23000: Duplicate entry '' for key 0
|
||||
select * from t1 order by pk1;
|
||||
|
|
|
@ -23,6 +23,10 @@ UPDATE t1 set b = c;
|
|||
select * from t1 order by pk1;
|
||||
UPDATE t1 set pk1 = 4 where pk1 = 1;
|
||||
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
|
||||
UPDATE t1 set pk1 = 1, c = 2 where pk1 = 4;
|
||||
select * from t1 order by pk1;
|
||||
|
|
Loading…
Add table
Reference in a new issue