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

MySQL is the only supported database engine for shavit-rankings. #1148

Closed
dowoge opened this issue Jun 23, 2022 · 5 comments · Fixed by #1182
Closed

MySQL is the only supported database engine for shavit-rankings. #1148

dowoge opened this issue Jun 23, 2022 · 5 comments · Fixed by #1182

Comments

@dowoge
Copy link

dowoge commented Jun 23, 2022

L 06/22/2022 - 23:42:24: [SM] Exception reported: MySQL is the only supported database engine for shavit-rankings.
L 06/22/2022 - 23:42:24: [SM] Blaming: shavit-rankings.smx
L 06/22/2022 - 23:42:24: [SM] Call stack trace:
L 06/22/2022 - 23:42:24: [SM]   [0] SetFailState
L 06/22/2022 - 23:42:24: [SM]   [1] Line 229, D:\sourcemod-1.10.0-git6528-windows_v3.2.0\addons\sourcemod\scripting\shavit-rankings.sp::Shavit_OnDatabaseLoaded
L 06/22/2022 - 23:42:24: [SM]   [3] Call_Finish
L 06/22/2022 - 23:42:24: [SM]   [4] Line 69, D:\sourcemod-1.10.0-git6528-windows_v3.2.0\addons\sourcemod\scripting\include\shavit/sql-create-tables-and-migrations.sp::RunOnDatabaseLoadedForward
L 06/22/2022 - 23:42:24: [SM]   [5] Line 245, D:\sourcemod-1.10.0-git6528-windows_v3.2.0\addons\sourcemod\scripting\include\shavit/sql-create-tables-and-migrations.sp::Trans_CreateTables_Success

is there any way to make it work with sqlite? im not really sure what to do

@rtldg
Copy link
Collaborator

rtldg commented Jun 23, 2022

bhoptimer uses sql procedures, which sqlite doesn't have, to handle the point weighting system.

also shavit-rankings has a lot of mysql specific syntax that needs to be ported so it doesn't support sqlite right now.

@dowoge
Copy link
Author

dowoge commented Jun 23, 2022

will it ever be supported? assuming you said "right now" im guessing yes

@rtldg
Copy link
Collaborator

rtldg commented Jun 23, 2022

Yeah, it'll probably be supported. I did some work on it earlier to make some queries compatible (& to prepare for postgresql support in sourcemod 1.11). The main point recalculation queries need sqlite versions afaict though so that's the main thing left

@dowoge
Copy link
Author

dowoge commented Jun 23, 2022

oh well thats good to know, i hope itll be compatible soon

@rtldg rtldg linked a pull request Dec 18, 2022 that will close this issue
@rtldg
Copy link
Collaborator

rtldg commented Mar 16, 2023

shavit-rankings should work with sqlite in the master branch now and in next release.
Using shavit_rankings_weighting 1.0 should work fine.
Using shavit_rankings_weighting 0.xxxx will require using dbi.sqlite.ext{.dll,.so} Sourcemod 1.12.

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 a pull request may close this issue.

2 participants