parent
d88b089b9f
commit
b70e5432b7
|
@ -98,6 +98,10 @@ namespace realm {
|
||||||
{
|
{
|
||||||
using Accessor = NativeAccessor<ValueType, ContextType>;
|
using Accessor = NativeAccessor<ValueType, ContextType>;
|
||||||
|
|
||||||
|
if (!realm->is_in_transaction()) {
|
||||||
|
throw std::runtime_error("Can only set property values within a transaction.");
|
||||||
|
}
|
||||||
|
|
||||||
size_t column = property.table_column;
|
size_t column = property.table_column;
|
||||||
switch (property.type) {
|
switch (property.type) {
|
||||||
case PropertyTypeBool:
|
case PropertyTypeBool:
|
||||||
|
|
Loading…
Reference in New Issue