From 782fa14db4b855b4c5034413d1065ea0915f6491 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Fri, 25 Apr 2014 11:43:20 +0200 Subject: [PATCH] [1.7.x] Set some transaction-related feature flags on SQLite. Refs #22496. Backport of e368912 from master. --- django/db/backends/sqlite3/base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/django/db/backends/sqlite3/base.py b/django/db/backends/sqlite3/base.py index d594b89ef8..4dcdb1109d 100644 --- a/django/db/backends/sqlite3/base.py +++ b/django/db/backends/sqlite3/base.py @@ -105,7 +105,9 @@ class DatabaseFeatures(BaseDatabaseFeatures): supports_foreign_keys = False supports_check_constraints = False autocommits_when_autocommit_is_off = True + supports_transactions = True atomic_transactions = False + can_rollback_ddl = True supports_paramstyle_pyformat = False supports_sequence_reset = False