1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Bug #21072 Duplicate key error in NDB references wrong key: Re-wrote string usage to avoid valgrind warnings

This commit is contained in:
unknown
2006-10-25 15:34:47 +02:00
parent 17649b5f6c
commit 62324a4426

View File

@@ -2035,9 +2035,7 @@ void handler::print_keydup_error(uint key_nr, const char *msg)
if (key_nr == MAX_KEY)
{
/* Key is unknown */
str.length(0);
str.append(STRING_WITH_LEN(""));
key_nr= -1;
str.copy("", 0, system_charset_info);
my_printf_error(ER_DUP_ENTRY, msg,
MYF(0), str.c_ptr(), "*UNKNOWN*");
}