From fc4cb7ab71e92d50967179d165456c373be64b32 Mon Sep 17 00:00:00 2001 From: Ben Thompson Date: Mon, 24 Oct 2016 11:44:07 -0500 Subject: [PATCH] Clean up unneeded objects created in fix. --- dbcon/mysql/ha_calpont_ddl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbcon/mysql/ha_calpont_ddl.cpp b/dbcon/mysql/ha_calpont_ddl.cpp index e7889afea..402fe7e99 100755 --- a/dbcon/mysql/ha_calpont_ddl.cpp +++ b/dbcon/mysql/ha_calpont_ddl.cpp @@ -2045,9 +2045,9 @@ int ha_calpont_impl_delete_table_(const char *db, const char *name, cal_connecti string emsg; if (thd->lex->sql_command == SQLCOM_DROP_DB) { - std::string tableName = std::string(name); + std::string tableName(name); tableName.erase(0,tableName.rfind("/")+1); - stmt = std::string("DROP TABLE ") + std::string(tableName); + stmt = std::string("DROP TABLE ") + tableName; } else {