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

Removed side effects while cleaning prefetch query #904

Merged
merged 2 commits into from
Apr 3, 2016
Merged

Removed side effects while cleaning prefetch query #904

merged 2 commits into from
Apr 3, 2016

Conversation

kammala
Copy link
Contributor

@kammala kammala commented Apr 2, 2016

There was a strange behaviour: then you do prefetch on complex query with some grouping, you will have some kind of exception or incorrect result. The reason of this is simple: clean_prefetch_query removes any information about grouping from query before placing it as subquery in prefetch queries, but it is done on original query instead of cloned one.

This pr fixes this little bug(in a single code line ^_^).

@coleifer coleifer merged commit 7ce1970 into coleifer:master Apr 3, 2016
@coleifer
Copy link
Owner

coleifer commented Apr 3, 2016

Nice pull request, and nice catch. Thanks!

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