diff options
Diffstat (limited to 'src/mongo/db/exec/projection_exec.cpp')
-rw-r--r-- | src/mongo/db/exec/projection_exec.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mongo/db/exec/projection_exec.cpp b/src/mongo/db/exec/projection_exec.cpp index 4b2d39dc155..b7bd0d587df 100644 --- a/src/mongo/db/exec/projection_exec.cpp +++ b/src/mongo/db/exec/projection_exec.cpp @@ -283,6 +283,16 @@ namespace mongo { return Status::OK(); } + Status ProjectionExec::transform(const BSONObj& in, BSONObj* out) const { + BSONObjBuilder bob; + Status s = transform(in, &bob, NULL); + if (!s.isOK()) { + return s; + } + *out = bob.obj(); + return Status::OK(); + } + Status ProjectionExec::transform(const BSONObj& in, BSONObjBuilder* bob, const MatchDetails* details) const { |