1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

bug#24303 Wrong result for UPDATE IGNORE for NDB table: Added test case

This commit is contained in:
unknown
2006-11-29 11:53:43 +01:00
parent 01e550d05b
commit 15155fff77
2 changed files with 12 additions and 0 deletions

View File

@ -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;