@@ -27,7 +27,7 @@ FilterStmt::~FilterStmt()
27
27
filter_units_.clear ();
28
28
}
29
29
30
- RC FilterStmt::create (Db *db, Table *default_table, std::unordered_map<std::string_view , Table *> *tables,
30
+ RC FilterStmt::create (Db *db, Table *default_table, std::unordered_map<std::string , Table *> *tables,
31
31
const Condition *conditions, int condition_num,
32
32
FilterStmt *&stmt)
33
33
{
@@ -50,13 +50,13 @@ RC FilterStmt::create(Db *db, Table *default_table, std::unordered_map<std::stri
50
50
return rc;
51
51
}
52
52
53
- RC get_table_and_field (Db *db, Table *default_table, std::unordered_map<std::string_view , Table *> *tables,
53
+ RC get_table_and_field (Db *db, Table *default_table, std::unordered_map<std::string , Table *> *tables,
54
54
const RelAttr &attr, Table *&table, const FieldMeta *&field)
55
55
{
56
56
if (common::is_blank (attr.relation_name )) {
57
57
table = default_table;
58
58
} else if (nullptr != tables) {
59
- auto iter = tables->find (std::string_view (attr.relation_name ));
59
+ auto iter = tables->find (std::string (attr.relation_name ));
60
60
if (iter != tables->end ()) {
61
61
table = iter->second ;
62
62
}
@@ -78,7 +78,7 @@ RC get_table_and_field(Db *db, Table *default_table, std::unordered_map<std::str
78
78
return RC::SUCCESS;
79
79
}
80
80
81
- RC FilterStmt::create_filter_unit (Db *db, Table *default_table, std::unordered_map<std::string_view , Table *> *tables,
81
+ RC FilterStmt::create_filter_unit (Db *db, Table *default_table, std::unordered_map<std::string , Table *> *tables,
82
82
const Condition &condition, FilterUnit *&filter_unit)
83
83
{
84
84
RC rc = RC::SUCCESS;
0 commit comments