Fix build

This commit is contained in:
Bond_009 2020-09-09 14:22:27 +02:00
parent 48e1cf9fd7
commit 15be11fca8
1 changed files with 4 additions and 5 deletions

View File

@ -138,7 +138,6 @@ namespace Emby.Server.Implementations.Data
"pragma shrink_memory" "pragma shrink_memory"
}; };
string[] postQueries = string[] postQueries =
{ {
// obsolete // obsolete
@ -2963,7 +2962,7 @@ namespace Emby.Server.Implementations.Data
if (query.EnableTotalRecordCount) if (query.EnableTotalRecordCount)
{ {
using (var statement = statements[statements.Count - 1]) using (var statement = statements[statements.Length - 1])
{ {
if (EnableJoinUserData(query)) if (EnableJoinUserData(query))
{ {
@ -3355,7 +3354,7 @@ namespace Emby.Server.Implementations.Data
if (query.EnableTotalRecordCount) if (query.EnableTotalRecordCount)
{ {
using (var statement = statements[statements.Count - 1]) using (var statement = statements[statements.Length - 1])
{ {
if (EnableJoinUserData(query)) if (EnableJoinUserData(query))
{ {
@ -5166,7 +5165,7 @@ where AncestorIdText not null and ItemValues.Value not null and ItemValues.Type
CheckDisposed(); CheckDisposed();
Span<byte> itemIdBlob = stackalloc byte[16] Span<byte> itemIdBlob = stackalloc byte[16];
itemId.TryWriteBytes(itemIdBlob); itemId.TryWriteBytes(itemIdBlob);
// First delete // First delete
@ -5534,7 +5533,7 @@ where AncestorIdText not null and ItemValues.Value not null and ItemValues.Type
+ GetJoinUserDataText(query) + GetJoinUserDataText(query)
+ whereText; + whereText;
using (var statement = statements[statements.Count - 1]) using (var statement = statements[statements.Length - 1])
{ {
statement.TryBind("@SelectType", returnType); statement.TryBind("@SelectType", returnType);
if (EnableJoinUserData(query)) if (EnableJoinUserData(query))