From 44e55e3b43766e2895a57d17a126f81c56d549e9 Mon Sep 17 00:00:00 2001 From: "mskold/marty@mysql.com/linux.site" <> Date: Wed, 25 Oct 2006 11:44:40 +0200 Subject: [PATCH] Bug #21072 Duplicate key error in NDB references wrong key: Re-wrote string usage to avoid valgrind warnings --- sql/handler.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sql/handler.cc b/sql/handler.cc index d3106efe151..6847da5148e 100644 --- a/sql/handler.cc +++ b/sql/handler.cc @@ -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