Details
-
Improvement
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
Fully Compatible
Description
bson-ruby deserializes bson symbols into strings. However the driver overrides this behavior to deserialize symbols to bson symbols: https://github.com/mongodb/mongo-ruby-driver/blob/master/lib/mongo/bson.rb#L29
This override requires that bson-ruby uses bson_type during deserialization to find out the Ruby bson type that is supposed to be used.
bson-ruby needs to have tests added that changing bson_type affects the type of deserialized value.
Attachments
Issue Links
- is related to
-
RUBY-2021 Ruby driver still uses deprecated symbol type
-
- Closed
-
- related to
-
MONGOID-4839 Add test coverage for symbol round-tripping in Hash field values
-
- Closed
-
-
RUBY-2123 Add test coverage for symbol round-tripping in Hash field values
-
- Closed
-
- links to