Skip to content

Commit

Permalink
Handle booleans in ART index lookup as well (fixes #516)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mytherin committed Apr 11, 2020
1 parent 7e1234d commit 331cce4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/execution/index/art/art.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,8 @@ void ART::Erase(unique_ptr<Node> &node, Key &key, unsigned depth, row_t row_id)
static unique_ptr<Key> CreateKey(ART &art, TypeId type, Value &value) {
assert(type == value.type);
switch (type) {
case TypeId::BOOL:
return Key::CreateKey<bool>(value.value_.boolean, art.is_little_endian);
case TypeId::INT8:
return Key::CreateKey<int8_t>(value.value_.tinyint, art.is_little_endian);
case TypeId::INT16:
Expand Down

0 comments on commit 331cce4

Please sign in to comment.