SQL error when loading the library with the MySQL database server (#327)

Fixes #305
This commit is contained in:
Michael Green
2024-03-10 13:58:42 +11:00
committed by GitHub
parent a4d581b369
commit 0bef298abf

View File

@@ -479,6 +479,7 @@ namespace gaseous_server.Controllers.v1_1
Database db = new Database(Database.databaseType.MySql, Config.DatabaseConfiguration.ConnectionString); Database db = new Database(Database.databaseType.MySql, Config.DatabaseConfiguration.ConnectionString);
string sql = @" string sql = @"
SET SESSION sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
SELECT DISTINCT SELECT DISTINCT
Game.Id, Game.Id,
Game.`Name`, Game.`Name`,