Skip to content

Conversation

moemoequte
Copy link

  • Updated SQL queries in shavit-rankings.sp to support PostgreSQL and SQLite, including handling of INSERT and REPLACE statements.
  • Modified shavit-stats.sp to adapt SQL syntax based on the database driver, ensuring compatibility for playtime updates and statistics retrieval.
  • Adjusted shavit-wr.sp to format time values correctly across different database systems and refined leaderboard queries.
  • Enhanced shavit-zones.sp to use INSERT ON CONFLICT for PostgreSQL, maintaining compatibility with MySQL and SQLite.
  • Introduced a global driver variable to manage database-specific logic throughout the scripts.

- Updated SQL queries in shavit-rankings.sp to support PostgreSQL and SQLite, including handling of INSERT and REPLACE statements.
- Modified shavit-stats.sp to adapt SQL syntax based on the database driver, ensuring compatibility for playtime updates and statistics retrieval.
- Adjusted shavit-wr.sp to format time values correctly across different database systems and refined leaderboard queries.
- Enhanced shavit-zones.sp to use INSERT ON CONFLICT for PostgreSQL, maintaining compatibility with MySQL and SQLite.
- Introduced a global driver variable to manage database-specific logic throughout the scripts.
@mourningsickness
Copy link
Contributor

hello! would you be able to help with postgre/sqlite in my PR? i'd like to make it fully compatible too, since you did all of this to fix other functionalities on those engines so presumably they would be more supported. #1255 c:

@moemoequte
Copy link
Author

@mourningsickness Sure, I’d be happy to help! I’m a bit busy with work right now, but I can take a look over the weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants