-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Server Programmability
-
Fully Compatible
DbResponse currently uses default and list constructors. The default constructor is used for stack initialization only—it should go away in favor of boost::optional<DbResponse>. We should add additional constructors that validate and otherwise convert their arguments into a valid DbResponse. In short, when you have a DbResponse in hand, it should be valid enough to send back to return to a user.
- related to
-
SERVER-46655 Throw a DBException wherever “code” was appended previously
- Open