From 08ce5b3dbd9687145f2525ba308eaa854ab9e651 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 25 Oct 2006 11:44:40 +0200 Subject: 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(-) (limited to 'sql') 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 -- cgit v1.2.1