You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The MongoDB behaviour is to consider a string and a binary different even if they contain the same data, but in a Realm Set they are considered the same. Realm should align to the MongoDB behaviour. In practice this should be a rare case because most strings have a null byte at the end while binaries do not.
Set<Mixed> set;
set.insert(StringData("abc", 3));
set.insert(BinaryData("abc", 3));
REALM_ASSERT(set.size() == 2); // currently fails with size of 1
This change will require a file format bump, but no data migration will be needed.
The text was updated successfully, but these errors were encountered:
The MongoDB behaviour is to consider a string and a binary different even if they contain the same data, but in a Realm Set they are considered the same. Realm should align to the MongoDB behaviour. In practice this should be a rare case because most strings have a null byte at the end while binaries do not.
This change will require a file format bump, but no data migration will be needed.
The text was updated successfully, but these errors were encountered: