Now both redis and sqlite3 follows the common principles for per-user
statistics:
1) If per-user statistics is enabled check per-user tokens ONLY
2) If per-user statistics is not enabled then check common tokens ONLY
If you need old behaviour, then you'd need to use separate classifier
for per-user statistics.
.sql = "SELECT value FROM tokens "
"LEFT JOIN languages ON tokens.language=languages.id "
"LEFT JOIN users ON tokens.user=users.id "
- "WHERE token=?1 AND (users.id=?2 OR users.id=0) "
+ "WHERE token=?1 AND (users.id=?2) "
"AND (languages.id=?3 OR languages.id=0);",
.stmt = NULL,
.args = "III",