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

[5.6] Make chunkById() work for non-incrementing/non-integer ids as well #24563

Merged
merged 1 commit into from
Jun 12, 2018

Conversation

halaei
Copy link
Contributor

@halaei halaei commented Jun 12, 2018

Currently, chunkById() adds a redundant (wrong) condition to the where clause in the first loop: id > 0. The reason this condition is wrong is because it does not work if the type of key (id) is not a positive integer. A related issue exists in laravel-mongodb package. See mongodb/laravel-mongodb#1538.

@taylorotwell taylorotwell merged commit 10932f8 into laravel:5.6 Jun 12, 2018
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

2 participants