Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(scanner): fix records with album name same as artist
and never use db.Where() with a struct gorm was seeing a query like db.Where(Album{Left: left, Right: right}) but if the `left` variable was empty, gorm couldn't differentiate it with an empty field in the struct so it generated SQL that we weren't expected like SELECT * FROM albums WHERE right=? instead of SELECT * FROM albums WHERE left=? AND right=? fixes #230
- Loading branch information
Showing
5 changed files
with
56 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters