diff options
author | unknown <mskold/marty@mysql.com/linux.site> | 2006-10-25 11:44:40 +0200 |
---|---|---|
committer | unknown <mskold/marty@mysql.com/linux.site> | 2006-10-25 11:44:40 +0200 |
commit | 08ce5b3dbd9687145f2525ba308eaa854ab9e651 (patch) | |
tree | dc7c6bf89dc971f8db94bcb86ad70ca37c555307 /sql/handler.cc | |
parent | 59c4b5ba2017df340407165bf32da15dc164641d (diff) | |
download | mariadb-git-08ce5b3dbd9687145f2525ba308eaa854ab9e651.tar.gz |
Bug #21072 Duplicate key error in NDB references wrong key: Re-wrote string usage to avoid valgrind warnings
Diffstat (limited to 'sql/handler.cc')
-rw-r--r-- | sql/handler.cc | 3 |
1 files changed, 1 insertions, 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 |