Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
91547772
Kaydet (Commit)
91547772
authored
Eki 07, 2013
tarafından
Aymeric Augustin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #21235 -- Disabled savepoints for old versions of SQLite.
Thanks Ramiro for the report.
üst
8d75d1e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
base.py
django/db/backends/sqlite3/base.py
+7
-3
No files found.
django/db/backends/sqlite3/base.py
Dosyayı görüntüle @
91547772
...
...
@@ -393,12 +393,16 @@ class DatabaseWrapper(BaseDatabaseWrapper):
BaseDatabaseWrapper
.
close
(
self
)
def
_savepoint_allowed
(
self
):
# Two conditions are required here:
# - A sufficiently recent version of SQLite to support savepoints,
# - Being in a transaction, which can only happen inside 'atomic'.
# When 'isolation_level' is not None, sqlite3 commits before each
# savepoint; it's a bug. When it is None, savepoints don't make sense
# because autocommit is enabled. The only exception is inside
atomic
# blocks. To work around that bug, on SQLite,
atomic
starts a
# because autocommit is enabled. The only exception is inside
'atomic'
# blocks. To work around that bug, on SQLite,
'atomic'
starts a
# transaction explicitly rather than simply disable autocommit.
return
self
.
in_atomic_block
return
self
.
features
.
uses_savepoints
and
self
.
in_atomic_block
def
_set_autocommit
(
self
,
autocommit
):
if
autocommit
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment