Skip to content

Commit

Permalink
Merge pull request #12 from realm/tg-core-0.94.4
Browse files Browse the repository at this point in the history
Update for core 0.94.4
  • Loading branch information
tgoyne committed Nov 5, 2015
2 parents 0823a62 + 52e7e61 commit e9ca54e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 13 deletions.
13 changes: 10 additions & 3 deletions impl/transact_log_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class TransactLogHandler {
return true;
}

bool select_link_list(size_t col, size_t row)
bool select_link_list(size_t col, size_t row, size_t)
{
m_active_linklist = nullptr;
for (auto& o : m_observers) {
Expand Down Expand Up @@ -303,15 +303,22 @@ class TransactLogHandler {
bool set_date_time(size_t col, size_t row, DateTime) { return mark_dirty(row, col); }
bool set_table(size_t col, size_t row) { return mark_dirty(row, col); }
bool set_mixed(size_t col, size_t row, const Mixed&) { return mark_dirty(row, col); }
bool set_link(size_t col, size_t row, size_t) { return mark_dirty(row, col); }
bool set_link(size_t col, size_t row, size_t, size_t) { return mark_dirty(row, col); }
bool set_null(size_t col, size_t row) { return mark_dirty(row, col); }
bool nullify_link(size_t col, size_t row) { return mark_dirty(row, col); }
bool nullify_link(size_t col, size_t row, size_t) { return mark_dirty(row, col); }

// Doesn't change any data
bool optimize_table() { return true; }

// Used for subtables, which we currently don't support
bool select_descriptor(int, const size_t*) { return false; }

// Not implemented
bool insert_substring(size_t, size_t, size_t, StringData) { return false; }
bool erase_substring(size_t, size_t, size_t, size_t) { return false; }
bool swap_rows(size_t, size_t) { return false; }
bool move_column(size_t, size_t) { return false; }
bool move_group_level_table(size_t, size_t) { return false; }
};
} // anonymous namespace

Expand Down
2 changes: 1 addition & 1 deletion object_schema.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
#include <vector>

namespace realm {
class Property;
class Group;
struct Property;

class ObjectSchema {
public:
Expand Down
4 changes: 0 additions & 4 deletions object_store.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -562,11 +562,7 @@ InvalidNullabilityException::InvalidNullabilityException(std::string const& obje
m_what = "'Object' property '" + property.name + "' must be nullable.";
}
else {
#if REALM_NULL_STRINGS == 1
m_what = "Array or Mixed property '" + property.name + "' cannot be nullable";
#else
m_what = "Only 'Object' property types are nullable";
#endif
}
}

Expand Down
4 changes: 0 additions & 4 deletions schema.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,7 @@ void Schema::validate() const

// check nullablity
if (prop.is_nullable) {
#if REALM_NULL_STRINGS == 1
if (prop.type == PropertyTypeArray || prop.type == PropertyTypeAny) {
#else
if (prop.type != PropertyTypeObject) {
#endif
exceptions.emplace_back(InvalidNullabilityException(object.name, prop));
}
}
Expand Down
2 changes: 1 addition & 1 deletion schema.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ class Schema : private std::vector<ObjectSchema> {
};
}

#endif /* defined(REALM_SCHEMA_HPP) */
#endif /* defined(REALM_SCHEMA_HPP) */

0 comments on commit e9ca54e

Please sign in to comment.