All SQL queries should be performed inside of a transaction
This commit is contained in:
@@ -1058,8 +1058,9 @@ namespace Duplicati.Library.Main.Database
|
||||
if (!string.IsNullOrWhiteSpace(m_tempDeletedBlockTable))
|
||||
try
|
||||
{
|
||||
using (var cmd = m_connection.CreateCommand())
|
||||
using (var cmd = m_connection.CreateCommand(m_rtr))
|
||||
await cmd.ExecuteNonQueryAsync($@"DROP TABLE ""{m_tempDeletedBlockTable}""");
|
||||
await m_rtr.CommitAsync();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user