diff options
author | jimw@rama.(none) <> | 2007-06-06 10:57:07 -0700 |
---|---|---|
committer | jimw@rama.(none) <> | 2007-06-06 10:57:07 -0700 |
commit | 3c93323d28e1daa6936c6060b738e6056cd4fb23 (patch) | |
tree | 14e9cb6702b9a4a6f6a762ef63264a1b2e3a9205 /mysql-test/t/ndb_charset.test | |
parent | 13adcedc90cbd18c3395e4158a036343be7659f0 (diff) | |
download | mariadb-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/ndb_charset.test')
-rw-r--r-- | mysql-test/t/ndb_charset.test | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/mysql-test/t/ndb_charset.test b/mysql-test/t/ndb_charset.test index 2cdb1972225..2d9f66564bc 100644 --- a/mysql-test/t/ndb_charset.test +++ b/mysql-test/t/ndb_charset.test @@ -38,9 +38,9 @@ create table t1 ( # ok insert into t1 values('aAa'); # fail ---error ER_DUP_ENTRY_WITH_KEY_NAME +--error ER_DUP_ENTRY insert into t1 values('aaa'); ---error ER_DUP_ENTRY_WITH_KEY_NAME +--error ER_DUP_ENTRY insert into t1 values('AAA'); # 1 select * from t1 order by a; @@ -61,9 +61,9 @@ create table t1 ( ) engine=ndb; # insert into t1 values ('A'),('b '),('C '),('d '),('E'),('f'); --- error ER_DUP_ENTRY_WITH_KEY_NAME +-- error ER_DUP_ENTRY insert into t1 values('b'); --- error ER_DUP_ENTRY_WITH_KEY_NAME +-- error ER_DUP_ENTRY insert into t1 values('a '); # select a,length(a) from t1 order by a; @@ -106,9 +106,9 @@ create table t1 ( # ok insert into t1 values(1, 'aAa'); # fail ---error ER_DUP_ENTRY_WITH_KEY_NAME +--error ER_DUP_ENTRY insert into t1 values(2, 'aaa'); ---error ER_DUP_ENTRY_WITH_KEY_NAME +--error ER_DUP_ENTRY insert into t1 values(3, 'AAA'); # 1 select * from t1 order by p; @@ -131,9 +131,9 @@ create table t1 ( ) engine=ndb; # insert into t1 values (1,'A'),(2,'b '),(3,'C '),(4,'d '),(5,'E'),(6,'f'); --- error ER_DUP_ENTRY_WITH_KEY_NAME +-- error ER_DUP_ENTRY insert into t1 values(99,'b'); --- error ER_DUP_ENTRY_WITH_KEY_NAME +-- error ER_DUP_ENTRY insert into t1 values(99,'a '); # select a,length(a) from t1 order by a; @@ -231,7 +231,7 @@ drop table t1; # ('a','A '),('B ','b'),('c','C '),('D','d'),('e ','E'),('F','f '), # ('A','b '),('b ','C'),('C','d '),('d','E'),('E ','f'), # ('a','C '),('B ','d'),('c','E '),('D','f'); -#-- error ER_DUP_ENTRY_WITH_KEY_NAME +#-- error ER_DUP_ENTRY #insert into t1 values('d','f'); # #select a,b,length(a),length(b) from t1 order by a,b limit 3; |