mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
WL#1563 - Modify MySQL to support fast CREATE/DROP INDEX
Change "duplicate key" message to print key name instead of key number.
This commit is contained in:
@ -548,9 +548,9 @@ select * from t4 where a+0 > 90;
|
||||
a b
|
||||
99 1
|
||||
insert t5 values (1,1);
|
||||
ERROR 23000: Duplicate entry '1-1' for key 1
|
||||
ERROR 23000: Duplicate entry '1-1' for key 'PRIMARY'
|
||||
insert t6 values (2,1);
|
||||
ERROR 23000: Duplicate entry '2-1' for key 1
|
||||
ERROR 23000: Duplicate entry '2-1' for key 'PRIMARY'
|
||||
insert t5 values (1,1) on duplicate key update b=b+10;
|
||||
insert t6 values (2,1) on duplicate key update b=b+20;
|
||||
select * from t5 where a < 3;
|
||||
|
Reference in New Issue
Block a user