All SQL queries should be performed inside of a transaction

This commit is contained in:
Carl Johnsen
2025-05-26 09:03:21 +02:00
parent 26e738e8d6
commit 5408570643
@@ -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)
{