diff --git a/src/observer/sql/stmt/delete_stmt.cpp b/src/observer/sql/stmt/delete_stmt.cpp index 452f0be13fa7bfbaf404cb07062e61428d6c4b75..058a2f98163d7964e9975fb486d4b76f952a1696 100644 --- a/src/observer/sql/stmt/delete_stmt.cpp +++ b/src/observer/sql/stmt/delete_stmt.cpp @@ -47,7 +47,7 @@ RC DeleteStmt::create(Db *db, const Deletes &delete_sql, Stmt *&stmt) } std::unordered_map table_map; - table_map.insert(std::pair(std::string_view(table_name), table)); + table_map.insert(std::pair(std::string(table_name), table)); FilterStmt *filter_stmt = nullptr; RC rc = FilterStmt::create(db, table, &table_map,