We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 06e5cf59 authored by clint's avatar clint

use lowercase to avoid some album duplication and make use of index speedups

parent daa0f51d
......@@ -77,7 +77,7 @@ function createAlbumIfNew($artist, $album) {
global $adodb;
try {
$name = $adodb->GetOne("SELECT name FROM Album WHERE name = " . ($album) . " AND artist_name = " . ($artist));
$name = $adodb->GetOne('SELECT name FROM Album WHERE lower(name) = lower(' . ($album) . ') AND lower(artist_name) = lower(' . ($artist) . ')');
}
catch (exception $e) {
die("FAILED alb " . $e->getMessage() . "\n");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment