From b2e7b6fafb31082430494839ba502ebaef9ef9b1 Mon Sep 17 00:00:00 2001 From: Tanmoy Sarkar <57363826+tanmoysrt@users.noreply.github.com> Date: Sat, 25 Oct 2025 19:12:25 +0530 Subject: [PATCH] fix(sqlite): Use DEFERRED isolation level sqlite connection starts with no transaction if isolation level hasn't provided --- frappe/database/sqlite/database.py | 1 - 1 file changed, 1 deletion(-) diff --git a/frappe/database/sqlite/database.py b/frappe/database/sqlite/database.py index 2bb21c9a76..6e02173239 100644 --- a/frappe/database/sqlite/database.py +++ b/frappe/database/sqlite/database.py @@ -105,7 +105,6 @@ class SQLiteDatabase(SQLiteExceptionUtil, Database): def get_connection(self, read_only: bool = False): conn = self.create_connection(read_only) - conn.isolation_level = None conn.create_function("regexp", 2, regexp) conn.create_function("regexp_replace", 3, regexp_replace) pragmas = {