From 0bef298abff180a249a60c6a1ec88a3862e7369e Mon Sep 17 00:00:00 2001 From: Michael Green <84688932+michael-j-green@users.noreply.github.com> Date: Sun, 10 Mar 2024 13:58:42 +1100 Subject: [PATCH] SQL error when loading the library with the MySQL database server (#327) Fixes #305 --- gaseous-server/Controllers/V1.1/GamesController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/gaseous-server/Controllers/V1.1/GamesController.cs b/gaseous-server/Controllers/V1.1/GamesController.cs index 154196a..67ce372 100644 --- a/gaseous-server/Controllers/V1.1/GamesController.cs +++ b/gaseous-server/Controllers/V1.1/GamesController.cs @@ -479,6 +479,7 @@ namespace gaseous_server.Controllers.v1_1 Database db = new Database(Database.databaseType.MySql, Config.DatabaseConfiguration.ConnectionString); string sql = @" +SET SESSION sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY','')); SELECT DISTINCT Game.Id, Game.`Name`,