a bit of refactoring
This commit is contained in:
@@ -22,7 +22,8 @@ std::pair<bool, std::vector<rowid_t>> USql::probe_index_scan(const Node *where,
|
||||
std::pair<bool, std::vector<rowid_t>> USql::look_for_usable_index(const Node *where, Table *table) const {
|
||||
if (where->node_type == NodeType::relational_operator) {
|
||||
auto * ron = (RelationalOperatorNode *)where;
|
||||
// TODO impllemen > & < https://en.cppreference.com/w/cpp/container/map/upper_bound
|
||||
// TODO implement >, >=, <=, <
|
||||
// https://en.cppreference.com/w/cpp/container/map/upper_bound
|
||||
if (ron->op == RelationalOperatorType::equal) {
|
||||
if (ron->left->node_type == NodeType::database_value &&
|
||||
((ron->right->node_type == NodeType::int_value) || (ron->right->node_type == NodeType::string_value))
|
||||
|
||||
Reference in New Issue
Block a user