diff options
| author | Bond_009 <bond.009@outlook.com> | 2020-09-09 14:22:27 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2020-09-09 14:22:27 +0200 |
| commit | 15be11fca833ff496d4aceac07c9bbe6b202beb9 (patch) | |
| tree | 46e0023e75f6fcae1f39e9723e21aec60e8d9d72 | |
| parent | 48e1cf9fd7e2e7f4821d1255e5943deb305ec0be (diff) | |
Fix build
| -rw-r--r-- | Emby.Server.Implementations/Data/SqliteItemRepository.cs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Emby.Server.Implementations/Data/SqliteItemRepository.cs b/Emby.Server.Implementations/Data/SqliteItemRepository.cs index fd8c4a795..ab60cee61 100644 --- a/Emby.Server.Implementations/Data/SqliteItemRepository.cs +++ b/Emby.Server.Implementations/Data/SqliteItemRepository.cs @@ -138,7 +138,6 @@ namespace Emby.Server.Implementations.Data "pragma shrink_memory" }; - string[] postQueries = { // obsolete @@ -2963,7 +2962,7 @@ namespace Emby.Server.Implementations.Data if (query.EnableTotalRecordCount) { - using (var statement = statements[statements.Count - 1]) + using (var statement = statements[statements.Length - 1]) { if (EnableJoinUserData(query)) { @@ -3355,7 +3354,7 @@ namespace Emby.Server.Implementations.Data if (query.EnableTotalRecordCount) { - using (var statement = statements[statements.Count - 1]) + using (var statement = statements[statements.Length - 1]) { if (EnableJoinUserData(query)) { @@ -5166,7 +5165,7 @@ where AncestorIdText not null and ItemValues.Value not null and ItemValues.Type CheckDisposed(); - Span<byte> itemIdBlob = stackalloc byte[16] + Span<byte> itemIdBlob = stackalloc byte[16]; itemId.TryWriteBytes(itemIdBlob); // First delete @@ -5534,7 +5533,7 @@ where AncestorIdText not null and ItemValues.Value not null and ItemValues.Type + GetJoinUserDataText(query) + whereText; - using (var statement = statements[statements.Count - 1]) + using (var statement = statements[statements.Length - 1]) { statement.TryBind("@SelectType", returnType); if (EnableJoinUserData(query)) |
