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
where the Bson conversion of v to a string is always wrapped by ".
Since this logic is not public I had to reproduce it in my code and that's how I found the bug.
The text was updated successfully, but these errors were encountered:
Thanks for the detailed report! I'm looking into this now.
abr-egn
changed the title
Incorrect default index name when creating an index
RUST-2054 Incorrect default index name when creating an index
Oct 14, 2024
Versions/Environment
rustc 1.81.0 (eeb90cda1 2024-09-04)
Ubuntu 22.04.4 LTS on WSL/Windows 10 Pro 22H2
[email protected]
and[email protected]
MongoDB 8.0.1 Community
standalone
Describe the bug
When creating indexes with the
text
,2d
,2dsphere
orhashed
types the default index name generated by the driver does not follow the documentation.Steps to reproduce
Expected result
The index is named
field_2d
.Actual result
The index is named
field_"2d"
.The problem boils down to
mongo-rust-driver/src/index.rs
Line 38 in ef0893f
where the
Bson
conversion ofv
to a string is always wrapped by"
.Since this logic is not public I had to reproduce it in my code and that's how I found the bug.
The text was updated successfully, but these errors were encountered: