-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
lp1937941: Fix update of play counter for different SQLite versions #4152
Conversation
Pull Request Test Coverage Report for Build 1081647478
💛 - Coveralls |
I can no longer replicate the bug using the code in this PR 👍 |
// https://www.sqlite.org/lang_update.html#upfrom | ||
// UPDATE-FROM is supported beginning in SQLite version 3.33.0 (2020-08-14) | ||
// https://bugs.launchpad.net/mixxx/+bug/1937941 | ||
#ifdef __SQLITE3__ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So if this is not defined, we use Qt's SQLite version which always supports it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤷 I don't know and don't care. Well it's actually simple. The workaround is only used if all conditions are met. Otherwise the default version takes precedence.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can confirm the original issue and that this is working for Ubuntu Groovy sqlite 3.31.
The code LGTM, Thank you.
https://bugs.launchpad.net/mixxx/+bug/1937941
Temporary mitigation to prevent a debug assertion. No time to fix it with a workaround.Fixed.And also fixed an uncovered case for SQLite >= 3.33.0 where the counter was not reset for tracks without any history playlist entry. We need to update twice!
Not going to write any tests. I don't want to touch this code ever after.