mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 19:37:55 +02:00
commit
79e705a2e0
1 changed files with 4 additions and 1 deletions
|
@ -122,7 +122,10 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
|||
{
|
||||
using (var cmd = db.CreateCommand())
|
||||
{
|
||||
cmd.CommandText = string.Format("attach '{0}' as {1};", path, alias);
|
||||
cmd.CommandText = string.Format("attach @dbPath as {0};", alias);
|
||||
cmd.Parameters.Add(cmd, "@dbPath", DbType.String);
|
||||
cmd.GetParameter(0).Value = path;
|
||||
|
||||
cmd.ExecuteNonQuery();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue