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
cbb9f629
Kaydet (Commit)
cbb9f629
authored
Şub 24, 2013
tarafından
Honza Kral
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Revert "fixes #19263" - Fails if not SQLite
This reverts commit
2b76f19f
.
üst
5a6a4249
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
19 deletions
+0
-19
where.py
django/db/models/sql/where.py
+0
-4
tests.py
tests/regressiontests/queries/tests.py
+0
-15
No files found.
django/db/models/sql/where.py
Dosyayı görüntüle @
cbb9f629
...
...
@@ -204,10 +204,6 @@ class WhereNode(tree.Node):
raise
EmptyResultSet
if
extra
:
return
(
'
%
s IN
%
s'
%
(
field_sql
,
extra
),
params
)
if
not
params
:
# Empty params would generate invalid sql in subquery
raise
EmptyResultSet
max_in_list_size
=
connection
.
ops
.
max_in_list_size
()
if
max_in_list_size
and
len
(
params
)
>
max_in_list_size
:
# Break up the params list into an OR of manageable chunks.
...
...
tests/regressiontests/queries/tests.py
Dosyayı görüntüle @
cbb9f629
...
...
@@ -2021,9 +2021,6 @@ class WeirdQuerysetSlicingTests(BaseQuerysetTest):
Article
.
objects
.
create
(
name
=
'three'
,
created
=
datetime
.
datetime
.
now
())
Article
.
objects
.
create
(
name
=
'four'
,
created
=
datetime
.
datetime
.
now
())
food
=
Food
.
objects
.
create
(
name
=
'spam'
)
Eaten
.
objects
.
create
(
meal
=
'spam with eggs'
,
food
=
food
)
def
test_tickets_7698_10202
(
self
):
# People like to slice with '0' as the high-water mark.
self
.
assertQuerysetEqual
(
Article
.
objects
.
all
()[
0
:
0
],
[])
...
...
@@ -2039,18 +2036,6 @@ class WeirdQuerysetSlicingTests(BaseQuerysetTest):
# ticket #12192
self
.
assertNumQueries
(
0
,
lambda
:
list
(
Number
.
objects
.
all
()[
1
:
1
]))
def
test_empty_sliced_subquery
(
self
):
# ticket #19263 - testing subqueries
self
.
assertEqual
(
Eaten
.
objects
.
filter
(
food__in
=
Food
.
objects
.
all
()[
0
:
0
])
.
count
(),
0
)
def
test_empty_sliced_subquery_exclude
(
self
):
# ticket #19263 - testing subqueries
self
.
assertEqual
(
Eaten
.
objects
.
exclude
(
food__in
=
Food
.
objects
.
all
()[
0
:
0
])
.
count
(),
1
)
class
EscapingTests
(
TestCase
):
def
test_ticket_7302
(
self
):
...
...
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