report null instead of undefined for deleteAll indexes count

This commit is contained in:
blagoev 2017-05-01 10:51:48 +03:00
parent 5effd3a9ac
commit 0dabf3d87d
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ typename T::Value CollectionClass<T>::create_collection_change_set(ContextType c
std::vector<ValueType> deletions, insertions, modifications;
if (change_set.deletions.count() == std::numeric_limits<size_t>::max()) {
deletions.push_back(Value::from_undefined(ctx));
deletions.push_back(Value::from_null(ctx));
}
else {
for (auto index : change_set.deletions.as_indexes()) {