summaryrefslogtreecommitdiff
path: root/mysql-test/t/myisam.test
diff options
context:
space:
mode:
authorjimw@rama.(none) <>2007-06-06 10:57:07 -0700
committerjimw@rama.(none) <>2007-06-06 10:57:07 -0700
commit3c93323d28e1daa6936c6060b738e6056cd4fb23 (patch)
tree14e9cb6702b9a4a6f6a762ef63264a1b2e3a9205 /mysql-test/t/myisam.test
parent13adcedc90cbd18c3395e4158a036343be7659f0 (diff)
downloadmariadb-git-3c93323d28e1daa6936c6060b738e6056cd4fb23.tar.gz
Bug #28842 Different 'duplicate key' error code between 5.0 and 5.1
The patch for WL 1563 added a new duplicate key error message so that the key name could be provided instead of the key number. But the error code for the new message was used even though that did not need to change. This could cause unnecessary problems for applications that used the old ER_DUP_ENTRY error code to detect duplicate key errors.
Diffstat (limited to 'mysql-test/t/myisam.test')
-rw-r--r--mysql-test/t/myisam.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/mysql-test/t/myisam.test b/mysql-test/t/myisam.test
index e66534f0cb9..b06fd536f45 100644
--- a/mysql-test/t/myisam.test
+++ b/mysql-test/t/myisam.test
@@ -453,9 +453,9 @@ create table t1 (a int not null auto_increment primary key, b text not null, uni
insert into t1 (b) values ('a'),('b'),('c');
select concat(b,'.') from t1;
update t1 set b='b ' where a=2;
---error ER_DUP_ENTRY_WITH_KEY_NAME
+--error ER_DUP_ENTRY
update t1 set b='b ' where a > 1;
---error ER_DUP_ENTRY_WITH_KEY_NAME
+--error ER_DUP_ENTRY
insert into t1 (b) values ('b');
select * from t1;
delete from t1 where b='b';