mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
Bug #21072 Duplicate key error in NDB references wrong key: use MAX_KEY to signal unknown key: Added string initialization
This commit is contained in:
parent
8bcb2a951d
commit
3ee868c7b1
1 changed files with 1 additions and 0 deletions
|
@ -2036,6 +2036,7 @@ void handler::print_keydup_error(uint key_nr, const char *msg)
|
|||
{
|
||||
/* Key is unknown */
|
||||
str.length(0);
|
||||
str.append(STRING_WITH_LEN(""));
|
||||
key_nr= -1;
|
||||
my_printf_error(ER_DUP_ENTRY, msg,
|
||||
MYF(0), str.c_ptr(), "*UNKNOWN*");
|
||||
|
|
Loading…
Reference in a new issue