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

Group by can result in incorrect ordering #115

Closed
stephenharris opened this issue Jul 30, 2013 · 2 comments
Closed

Group by can result in incorrect ordering #115

stephenharris opened this issue Jul 30, 2013 · 2 comments
Labels

Comments

@stephenharris
Copy link
Owner

This has been reported only a few times - but grouping events by series can result in incorrect ordering. This only happens when the database has the dates stored out of order. Although this probably isn't too regular occurrence, dates appearing out of order in the database shouldn't be a problem.

The bug is that to group occurrences by series, only a "GROUP BY" is used. But this groups and then sorts results, meaning that the first date of an event as it appears in the database is used. As noted above, this is not necessarily the correct date.

A subquery will probably be needed to handle grouping correctly.

@stephenharris
Copy link
Owner Author

Fixed in 2.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant