Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed compileWhereIn function #332

Merged
merged 2 commits into from
Sep 30, 2014
Merged

Conversation

ricardoaponte
Copy link
Contributor

MongoDB 2.6.0, no longer accepting bson object in the $in clause. To fix this, the values need to be numerically indexed starting from zero and have consecutive values.

Adding array_values fixed this issue.

This fix was not tested on a previous MongoDB version.

MongoDB 2.6.0, no longer accepting bson object in the $in clause. To fix this, the values need to be numerically indexed starting from zero and have consecutive values.

Adding array_values fixed this issue.

This fix was not tested on a previous MongoDB version.
@ricardoaponte
Copy link
Contributor Author

Forgot to change the compileWhereNotIn also

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 926f740 on ricardoaponte:master into 65b5972 on jenssegers:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 926f740 on ricardoaponte:master into 65b5972 on jenssegers:master.

jenssegers added a commit that referenced this pull request Sep 30, 2014
Changed compileWhereIn function
@jenssegers jenssegers merged commit f13fe17 into mongodb:master Sep 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants