Skip to content

Commit

Permalink
Small fix for realm-trawler
Browse files Browse the repository at this point in the history
We should be able to handle files that uses type_LinkList
  • Loading branch information
jedelbo committed Aug 20, 2024
1 parent 13273f0 commit 436556c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/realm/exec/realm_trawler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -606,16 +606,20 @@ void Table::print_columns(const Group& group) const
{
std::cout << " <" << m_table_type << ">\n";
for (unsigned i = 0; i < m_column_names.size(); i++) {
auto type = realm::ColumnType(m_column_types.get_val(i) & 0xFFFF);
auto type = m_column_types.get_val(i) & 0xFFFF;
auto attr = realm::ColumnAttr(m_column_attributes.get_val(i));
std::string type_str;
realm::ColKey col_key;
if (this->m_column_colkeys.valid()) {
// core6
col_key = realm::ColKey(m_column_colkeys.get_val(i));
}
if (type == 13) {
// type_LinkList == 13
type = 12;
}

if (type == realm::col_type_Link) {
if (type == 12) {
size_t target_table_ndx;
if (col_key) {
// core6
Expand Down

0 comments on commit 436556c

Please sign in to comment.