mirror of
https://github.com/MariaDB/server.git
synced 2025-08-30 11:22:14 +03:00
Give warnings for unused objects
Changed error message to be compatible with old error file Added new error message for new DUP_ENTRY syntax
This commit is contained in:
@@ -6660,7 +6660,7 @@ copy_data_between_tables(TABLE *from,TABLE *to,
|
||||
uint key_nr= to->file->get_dup_key(error);
|
||||
if ((int) key_nr >= 0)
|
||||
{
|
||||
const char *err_msg= ER(ER_DUP_ENTRY);
|
||||
const char *err_msg= ER(ER_DUP_ENTRY_WITH_KEY_NAME);
|
||||
if (key_nr == 0 &&
|
||||
(to->key_info[0].key_part[0].field->flags &
|
||||
AUTO_INCREMENT_FLAG))
|
||||
|
Reference in New Issue
Block a user