Commit 2c0a83bc authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

fixup joins

parent 0a27ad4b
......@@ -669,7 +669,7 @@ Query<IArtist> Artist::search( MediaLibraryPtr ml, const std::string& name,
req += " AND art.nb_albums > 0";
else
req += " AND art.nb_tracks > 0";
return make_query<Artist, IArtist>( ml, "*", std::move( req ),
return make_query<Artist, IArtist>( ml, "art.*", std::move( req ),
sortRequest( params ),
sqlite::Tools::sanitizePattern( name ) );
}
......@@ -686,7 +686,7 @@ Query<IArtist> Artist::listAll( MediaLibraryPtr ml, ArtistIncluded included,
req += "art.nb_tracks > 0";
if ( params == nullptr || params->includeMissing == false )
req += " AND art.is_present != 0";
return make_query<Artist, IArtist>( ml, "*", std::move( req ),
return make_query<Artist, IArtist>( ml, "art.*", std::move( req ),
sortRequest( params ) );
}
......
Supports Markdown
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