summaryrefslogtreecommitdiff
path: root/mysql-test/include/query_cache.inc
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/include/query_cache.inc
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/include/query_cache.inc')
-rw-r--r--mysql-test/include/query_cache.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysql-test/include/query_cache.inc b/mysql-test/include/query_cache.inc
index b54976886bd..fdd6bc50eae 100644
--- a/mysql-test/include/query_cache.inc
+++ b/mysql-test/include/query_cache.inc
@@ -90,7 +90,7 @@ delete from t3 where t1_id = 1 and t2_id = 1;
select t1.* from t1, t2, t3 where t3.state & 1 = 0 and t3.t1_id = t1.id and t3.t2_id = t2.id and t1.id = 1 order by t1.a asc;
begin;
insert into t3 VALUES ( NULL, 1, 1, 2 );
--- error ER_DUP_ENTRY_WITH_KEY_NAME
+-- error ER_DUP_ENTRY
insert into t3 VALUES ( NULL, 1, 1, 2 );
commit;
select t1.* from t1, t2, t3 where t3.state & 1 = 0 and t3.t1_id = t1.id and t3.t2_id = t2.id and t1.id = 1 order by t1.a asc;