summaryrefslogtreecommitdiff
path: root/mysql-test/r/ndb_update.result
diff options
context:
space:
mode:
authorunknown <mskold/marty@mysql.com/linux.site>2006-11-29 11:53:43 +0100
committerunknown <mskold/marty@mysql.com/linux.site>2006-11-29 11:53:43 +0100
commit15155fff77f6d6c98e65b5d304adf6bb5d69d26e (patch)
treeffd2dd920ccea5d4a8e501ca6419895e0941250d /mysql-test/r/ndb_update.result
parent01e550d05b9e217c478694e231e5ea086392778e (diff)
downloadmariadb-git-15155fff77f6d6c98e65b5d304adf6bb5d69d26e.tar.gz
bug#24303 Wrong result for UPDATE IGNORE for NDB table: Added test case
Diffstat (limited to 'mysql-test/r/ndb_update.result')
-rw-r--r--mysql-test/r/ndb_update.result8
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/r/ndb_update.result b/mysql-test/r/ndb_update.result
index 164d1bd700c..52236bb0c3d 100644
--- a/mysql-test/r/ndb_update.result
+++ b/mysql-test/r/ndb_update.result
@@ -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;