Details
-
Task
-
Resolution: Done
-
Major - P3
-
None
-
None
-
Fully Compatible
-
Query 2017-01-23
Description
The convenience of the Value(const char* value) constructor doesn't seem to outweigh the potential risk (see SERVER-23356 and SERVER-25991) for erroneously attempting to construct a string literal with an embedded null byte.
The Value(StringData value) and user-defined literal constructor for StringData from SERVER-24651 seem sufficient for syntactic convenience.
Attachments
Issue Links
- is related to
-
SERVER-23356 ExpressionSubstrCPTest uses non-NUL terminated char*, and does not properly construct strings with embedded null bytes
-
- Closed
-
-
SERVER-25991 WithNullCharacter* test cases in ExpressionSubstrCPTest should use StringData literal
-
- Closed
-