diff --git a/docker-compose-build.yml b/docker-compose-build.yml index 3c581ca6..3323d55d 100644 --- a/docker-compose-build.yml +++ b/docker-compose-build.yml @@ -22,16 +22,18 @@ services: - igdbclientsecret= gsdb: container_name: gsdb - image: mariadb + image: mysql restart: unless-stopped networks: - gaseous volumes: - gsdb:/var/lib/mysql environment: - - MARIADB_ROOT_PASSWORD=gaseous - - MARIADB_USER=gaseous - - MARIADB_PASSWORD=gaseous + - MYSQL_ROOT_PASSWORD=gaseous + - MYSQL_USER=gaseous + - MYSQL_PASSWORD=gaseous + ports: + - 3307:3306 networks: gaseous: driver: bridge diff --git a/gaseous-server/Controllers/V1.1/GamesController.cs b/gaseous-server/Controllers/V1.1/GamesController.cs index 8bcc3f56..fb02dede 100644 --- a/gaseous-server/Controllers/V1.1/GamesController.cs +++ b/gaseous-server/Controllers/V1.1/GamesController.cs @@ -479,6 +479,7 @@ public static GameReturnPackage GetGames(GameSearchModel model, string userid, i 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`,