aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Data/SqliteItemRepository.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-02-26 16:47:52 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-02-26 16:47:52 -0500
commit5fa3817a7667b5de8822ed436b8a66bd05a1afde (patch)
treeee65e4f94813ae3cb300fc802f02e4864b3eaaec /Emby.Server.Implementations/Data/SqliteItemRepository.cs
parent666604e8cb51b59d17bb30cfadaa3f4976456ec9 (diff)
update components
Diffstat (limited to 'Emby.Server.Implementations/Data/SqliteItemRepository.cs')
-rw-r--r--Emby.Server.Implementations/Data/SqliteItemRepository.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/Emby.Server.Implementations/Data/SqliteItemRepository.cs b/Emby.Server.Implementations/Data/SqliteItemRepository.cs
index 1f72ebd54..e65ebeb04 100644
--- a/Emby.Server.Implementations/Data/SqliteItemRepository.cs
+++ b/Emby.Server.Implementations/Data/SqliteItemRepository.cs
@@ -3388,10 +3388,10 @@ namespace Emby.Server.Implementations.Data
var includeTypes = query.IncludeItemTypes.SelectMany(MapIncludeItemTypes).ToArray();
if (includeTypes.Length == 1)
{
- whereClauses.Add("type=@type" + paramSuffix);
+ whereClauses.Add("type=@type");
if (statement != null)
{
- statement.TryBind("@type" + paramSuffix, includeTypes[0]);
+ statement.TryBind("@type", includeTypes[0]);
}
}
else if (includeTypes.Length > 1)
@@ -4936,7 +4936,7 @@ namespace Emby.Server.Implementations.Data
ParentId = query.ParentId,
IsPlayed = query.IsPlayed
};
- var whereClauses = GetWhereClauses(typeSubQuery, null, "itemTypes");
+ var whereClauses = GetWhereClauses(typeSubQuery, null);
whereClauses.Add("guid in (select ItemId from ItemValues where ItemValues.CleanValue=A.CleanName AND " + typeClause + ")");
@@ -5072,7 +5072,7 @@ namespace Emby.Server.Implementations.Data
if (typeSubQuery != null)
{
- GetWhereClauses(typeSubQuery, null, "itemTypes");
+ GetWhereClauses(typeSubQuery, null);
}
BindSimilarParams(query, statement);
GetWhereClauses(innerQuery, statement);
@@ -5110,7 +5110,7 @@ namespace Emby.Server.Implementations.Data
if (typeSubQuery != null)
{
- GetWhereClauses(typeSubQuery, null, "itemTypes");
+ GetWhereClauses(typeSubQuery, null);
}
BindSimilarParams(query, statement);
GetWhereClauses(innerQuery, statement);