We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0b4ca3 commit 1251a84Copy full SHA for 1251a84
QueryDB/PostgreSQL/Adapter.cs
@@ -404,12 +404,12 @@ internal static async Task<bool> ExecuteTransactionAsync(List<string> sqlStateme
404
await sqlCommand.ExecuteNonQueryAsync();
405
}
406
407
- transaction.Commit();
+ await transaction.CommitAsync();
408
return true;
409
410
catch (Exception ex)
411
{
412
- transaction.Rollback();
+ await transaction.RollbackAsync();
413
Console.WriteLine($"Transaction rolled back due to error: {ex.Message}");
414
return false;
415
0 commit comments