pr feedback
This commit is contained in:
parent
9012549c5d
commit
9fe636b614
|
@ -207,7 +207,7 @@ namespace realm {
|
||||||
auto string_value = Accessor::to_string(ctx, value);
|
auto string_value = Accessor::to_string(ctx, value);
|
||||||
m_row.set_string(column, string_value);
|
m_row.set_string(column, string_value);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case PropertyType::Data:
|
case PropertyType::Data:
|
||||||
m_row.set_binary(column, BinaryData(Accessor::to_binary(ctx, value)));
|
m_row.set_binary(column, BinaryData(Accessor::to_binary(ctx, value)));
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -501,10 +501,9 @@ void do_add_null_comparison_to_query(Query &query, const Schema &schema, const O
|
||||||
do_add_null_comparison_to_query<Link>(query, cmp.op, expr, args);
|
do_add_null_comparison_to_query<Link>(query, cmp.op, expr, args);
|
||||||
break;
|
break;
|
||||||
case realm::PropertyType::Array:
|
case realm::PropertyType::Array:
|
||||||
throw std::runtime_error((std::string)"Comparing Lists to 'null' is not supported");
|
throw std::runtime_error("Comparing Lists to 'null' is not supported");
|
||||||
break;
|
|
||||||
default: {
|
default: {
|
||||||
throw std::runtime_error((std::string)"Object type " + string_for_property_type(type) + " not supported");
|
throw std::runtime_error(std::string("Object type ") + string_for_property_type(type) + " not supported");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,7 +68,7 @@ Realm::Realm(Config config)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Realm::open_with_config(Config& config,
|
void Realm::open_with_config(const Config& config,
|
||||||
std::unique_ptr<Replication>& history,
|
std::unique_ptr<Replication>& history,
|
||||||
std::unique_ptr<SharedGroup>& shared_group,
|
std::unique_ptr<SharedGroup>& shared_group,
|
||||||
std::unique_ptr<Group>& read_only_group,
|
std::unique_ptr<Group>& read_only_group,
|
||||||
|
|
|
@ -158,7 +158,7 @@ namespace realm {
|
||||||
static _impl::RealmCoordinator& get_coordinator(Realm& realm) { return *realm.m_coordinator; }
|
static _impl::RealmCoordinator& get_coordinator(Realm& realm) { return *realm.m_coordinator; }
|
||||||
};
|
};
|
||||||
|
|
||||||
static void open_with_config(Config& config,
|
static void open_with_config(const Config& config,
|
||||||
std::unique_ptr<Replication>& history,
|
std::unique_ptr<Replication>& history,
|
||||||
std::unique_ptr<SharedGroup>& shared_group,
|
std::unique_ptr<SharedGroup>& shared_group,
|
||||||
std::unique_ptr<Group>& read_only_group,
|
std::unique_ptr<Group>& read_only_group,
|
||||||
|
|
Loading…
Reference in New Issue