1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +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:
mskold/marty@mysql.com/linux.site
2006-10-25 11:44:40 +02:00
parent 240cd87dbf
commit 44e55e3b43

View File

@ -1106,8 +1106,7 @@ void handler::print_error(int error, myf errflag)
if (key_nr == MAX_KEY)
{
/* Key is unknown */
str.length(0);
str.append("");
str.copy("", 0, system_charset_info);
key_nr= -1;
}
else