From 8dfbbb50f6b0cd04aabb7b3ed3cbaae0ed965a23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Wed, 10 Sep 2025 06:51:01 +0200 Subject: [PATCH] TODO --- GRDB/Core/DatabasePool.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/GRDB/Core/DatabasePool.swift b/GRDB/Core/DatabasePool.swift index 4c791a1d9..2fb2d5cc5 100644 --- a/GRDB/Core/DatabasePool.swift +++ b/GRDB/Core/DatabasePool.swift @@ -361,6 +361,7 @@ extension DatabasePool: DatabaseReader { return try await readerPool.get { reader in try await reader.execute { db in defer { + #warning("TODO: when Task is cancelled, this commit fails, and we're still in a transaction") // Ignore commit error, but make sure we leave the transaction try? db.commit() assert(!db.isInsideTransaction)