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

Apply offset and limit correctly to the Visitor Log SQL queries #9774

Merged
merged 2 commits into from Mar 10, 2016

Conversation

mattab
Copy link
Member

@mattab mattab commented Feb 13, 2016

refs #9200

@mattab mattab added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Feb 13, 2016
@mattab mattab added this to the 2.16.1 milestone Feb 13, 2016
@mattab
Copy link
Member Author

mattab commented Feb 13, 2016

when a SQL query is wrapped ie. there is an inner query and an outer query (for example when segments are used and joins are done in a sub-query), the offset and limit is applied to the inner query. The offset should not be applied to the outer query since applying the offset twice will always result in the outer query returning no data.

mattab pushed a commit that referenced this pull request Mar 10, 2016
Apply offset and limit correctly to the Visitor Log SQL queries
@mattab mattab merged commit 396675f into master Mar 10, 2016
@mattab
Copy link
Member Author

mattab commented Mar 10, 2016

I assume my code is correct but a review post-merge is welcome 👍 @sgiehl @tsteur

@mattab mattab deleted the offset_visitor_log branch March 15, 2016 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant