0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00

fix subobject selector returning the same object twice

This commit is contained in:
Eliot Horowitz 2009-08-20 10:06:47 -04:00
parent 45683d835d
commit 7831db0d55

View File

@ -258,6 +258,7 @@ namespace mongo {
if ( e.eoo() )
return;
b.append(e);
return;
}
string left = path.substr( 0 , i );
@ -280,6 +281,7 @@ namespace mongo {
for( multimap<string,string>::const_iterator i = p.first; i != p.second; ++i ) {
string next = i->second;
if ( e.eoo() ){
}
else if ( next.size() == 0 || next == "." || e.type() != Object ){