Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid MySQL-specific SQL to cast vote
Until now, saving a user's vote was relying on MySQL's non-standard "UPSERT" statement (INSERT INTO ... ON DUPLICATE KEY UPDATE ...). This prevents using the plugin with other RDBMS. To avoid this, we always delete the old vote, and insert a new record with the user's new stance. Fixes #4
- Loading branch information