aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Data/BaseSqliteRepository.cs
diff options
context:
space:
mode:
authorAmbulantRex <21176662+AmbulantRex@users.noreply.github.com>2023-04-15 07:11:33 -0600
committerGitHub <noreply@github.com>2023-04-15 07:11:33 -0600
commit4a0b135b7a18ae27d0a11905d31d2ba621079225 (patch)
tree3c10db9a166efae9e69f9f32cce5d86767523da5 /Emby.Server.Implementations/Data/BaseSqliteRepository.cs
parent7dd4201971f1bb19ea380f2ca83aed11206cfe97 (diff)
parentc2b88f1852b16c2dde69b13c89feb34f78268057 (diff)
Merge branch 'jellyfin:master' into whitelist-dlls
Diffstat (limited to 'Emby.Server.Implementations/Data/BaseSqliteRepository.cs')
-rw-r--r--Emby.Server.Implementations/Data/BaseSqliteRepository.cs14
1 files changed, 1 insertions, 13 deletions
diff --git a/Emby.Server.Implementations/Data/BaseSqliteRepository.cs b/Emby.Server.Implementations/Data/BaseSqliteRepository.cs
index 1d61667f8..bc520b86e 100644
--- a/Emby.Server.Implementations/Data/BaseSqliteRepository.cs
+++ b/Emby.Server.Implementations/Data/BaseSqliteRepository.cs
@@ -139,7 +139,7 @@ namespace Emby.Server.Implementations.Data
if (JournalSizeLimit.HasValue)
{
- WriteConnection.Execute("PRAGMA journal_size_limit=" + (int)JournalSizeLimit.Value);
+ WriteConnection.Execute("PRAGMA journal_size_limit=" + JournalSizeLimit.Value);
}
if (Synchronous.HasValue)
@@ -166,18 +166,6 @@ namespace Emby.Server.Implementations.Data
public IStatement PrepareStatement(IDatabaseConnection connection, string sql)
=> connection.PrepareStatement(sql);
- public IStatement[] PrepareAll(IDatabaseConnection connection, IReadOnlyList<string> sql)
- {
- int len = sql.Count;
- IStatement[] statements = new IStatement[len];
- for (int i = 0; i < len; i++)
- {
- statements[i] = connection.PrepareStatement(sql[i]);
- }
-
- return statements;
- }
-
protected bool TableExists(ManagedConnection connection, string name)
{
return connection.RunInTransaction(