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
604d8763
Kaydet (Commit)
604d8763
authored
Şub 10, 2013
tarafından
Anssi Kääriäinen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #19112 -- Reduced the amount of query params in a test
üst
5cc0f5f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
tests.py
tests/regressiontests/queries/tests.py
+4
-2
No files found.
tests/regressiontests/queries/tests.py
Dosyayı görüntüle @
604d8763
...
...
@@ -2169,8 +2169,10 @@ class ConditionalTests(BaseQuerysetTest):
@skipUnlessDBFeature
(
'supports_1000_query_parameters'
)
def
test_ticket14244
(
self
):
# Test that the "in" lookup works with lists of 1000 items or more.
# The numbers amount is picked to force three different IN batches
# for Oracle, yet to be less than 2100 parameter limit for MSSQL.
numbers
=
range
(
2050
)
Number
.
objects
.
all
()
.
delete
()
numbers
=
range
(
2500
)
Number
.
objects
.
bulk_create
(
Number
(
num
=
num
)
for
num
in
numbers
)
self
.
assertEqual
(
Number
.
objects
.
filter
(
num__in
=
numbers
[:
1000
])
.
count
(),
...
...
@@ -2186,7 +2188,7 @@ class ConditionalTests(BaseQuerysetTest):
)
self
.
assertEqual
(
Number
.
objects
.
filter
(
num__in
=
numbers
)
.
count
(),
2500
len
(
numbers
)
)
...
...
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