PetaPoco now defaults to SQLite, requires WHERE on exists calls

This commit is contained in:
kay.one 2011-06-19 22:08:58 -07:00
commit 907c508a70
3 changed files with 40 additions and 5 deletions

View file

@ -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;