Skip to content

Commit

Permalink
SQL error when loading the library with the MySQL database server
Browse files Browse the repository at this point in the history
Fixes #305
  • Loading branch information
michael-j-green committed Mar 10, 2024
1 parent 111c501 commit 36aa0aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docker-compose-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,18 @@ services:
- igdbclientsecret=<clientsecret>
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
Expand Down
1 change: 1 addition & 0 deletions gaseous-server/Controllers/V1.1/GamesController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down

0 comments on commit 36aa0aa

Please sign in to comment.