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
af121b08
Kaydet (Commit)
af121b08
authored
Mar 08, 2017
tarafından
Adam Johnson
Kaydeden (comit)
Tim Graham
Mar 08, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Refs #27624 -- Made many attributes of Query immutable.
üst
5db465d5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
query.py
django/db/models/sql/query.py
+0
-0
subqueries.py
django/db/models/sql/subqueries.py
+2
-3
No files found.
django/db/models/sql/query.py
Dosyayı görüntüle @
af121b08
This diff is collapsed.
Click to expand it.
django/db/models/sql/subqueries.py
Dosyayı görüntüle @
af121b08
...
...
@@ -19,7 +19,7 @@ class DeleteQuery(Query):
compiler
=
'SQLDeleteCompiler'
def
do_query
(
self
,
table
,
where
,
using
):
self
.
tables
=
[
table
]
self
.
tables
=
(
table
,)
self
.
where
=
where
cursor
=
self
.
get_compiler
(
using
)
.
execute_sql
(
CURSOR
)
return
cursor
.
rowcount
if
cursor
else
0
...
...
@@ -52,8 +52,7 @@ class DeleteQuery(Query):
innerq
.
get_initial_alias
()
# The same for our new query.
self
.
get_initial_alias
()
innerq_used_tables
=
[
t
for
t
in
innerq
.
tables
if
innerq
.
alias_refcount
[
t
]]
innerq_used_tables
=
tuple
([
t
for
t
in
innerq
.
tables
if
innerq
.
alias_refcount
[
t
]])
if
not
innerq_used_tables
or
innerq_used_tables
==
self
.
tables
:
# There is only the base table in use in the query.
self
.
where
=
innerq
.
where
...
...
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