Skip to content

Commit

Permalink
Fix a crash in Table::dump_objects() when the table has an enum strin…
Browse files Browse the repository at this point in the history
…g column
  • Loading branch information
tgoyne committed Oct 31, 2023
1 parent 2084261 commit d29374d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/realm/cluster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1392,6 +1392,7 @@ void Cluster::dump_objects(int64_t key_offset, std::string lead) const
}
case col_type_String: {
ArrayString arr(m_alloc);
set_spec(arr, col.get_index());
ref_type ref = Array::get_as_ref(j);
arr.init_from_ref(ref);
std::cout << ", " << arr.get(i);
Expand Down

0 comments on commit d29374d

Please sign in to comment.