-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: BSON
-
None
-
Fully Compatible
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.
- 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