mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
PetaPoco now defaults to SQLite, requires WHERE on exists calls
This commit is contained in:
parent
852b1e9bb5
commit
907c508a70
3 changed files with 40 additions and 5 deletions
|
@ -80,7 +80,7 @@ namespace NzbDrone.Core.Providers
|
|||
{
|
||||
Logger.Trace("Importing file to database [{0}]", filePath);
|
||||
|
||||
if (_database.Exists<EpisodeFile>("Path =@0", Parser.NormalizePath(filePath)))
|
||||
if (_database.Exists<EpisodeFile>("WHERE Path =@0", Parser.NormalizePath(filePath)))
|
||||
{
|
||||
Logger.Trace("[{0}] already exists in the database. skipping.", filePath);
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue