-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Optimization
-
Query 2020-10-05
Using the BSONRegex struct to hold regex types, for example, holds the pattern by StringData which will become invalid if the original BSON goes out of scope. While not a big deal in practice, the CST should not require the original BSON to outlive it.
Other types that need to change are BSONCode, BSONCodeWScope, BSONBinData, BSONDBRef, and BSONSymbol.