mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
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.
This commit is contained in:
@ -143,7 +143,7 @@ SELECT * FROM t1 WHERE b=NULL;
|
||||
explain SELECT * FROM t1 WHERE b IS NULL;
|
||||
SELECT * FROM t1 WHERE b<=>NULL;
|
||||
|
||||
--error ER_DUP_ENTRY_WITH_KEY_NAME
|
||||
--error ER_DUP_ENTRY
|
||||
INSERT INTO t1 VALUES (1,3);
|
||||
DROP TABLE t1;
|
||||
|
||||
|
Reference in New Issue
Block a user