diff --git a/routes.go b/routes.go index ef2411f..0ab5552 100644 --- a/routes.go +++ b/routes.go @@ -72,7 +72,9 @@ func (env *Env) getArtistByName(c *gin.Context) { } // Lookup this name in the DB and return any ArtistProfile objects - // This is case insensitive on sqlite + // NOTE: This is case insensitive on sqlite + // NOTE: However unicode is treated case sensitive due to very difficult conversions for some languages/characters + // NOTE: In future better DBs with unicode support such as postgres should be used var artistProfiles []ArtistProfile dbResult := env.db.Where("name LIKE ?", fmt.Sprintf("%%%s%%", artistName)).Preload("Genres").Find(&artistProfiles) if dbResult.Error != nil {