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
ed1bcf05
Kaydet (Commit)
ed1bcf05
authored
Ara 17, 2015
tarafından
Sergey Fedoseev
Kaydeden (comit)
Tim Graham
Ara 17, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Refs #25894 -- Fixed evaluation of zero-length slices of QuerySet.values() on Oracle.
üst
9af40f5d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
compiler.py
django/db/backends/oracle/compiler.py
+0
-3
compiler.py
django/db/models/sql/compiler.py
+0
-2
query.py
django/db/models/sql/query.py
+3
-0
No files found.
django/db/backends/oracle/compiler.py
Dosyayı görüntüle @
ed1bcf05
...
...
@@ -12,9 +12,6 @@ class SQLCompiler(compiler.SQLCompiler):
If 'with_limits' is False, any limit/offset information is not
included in the query.
"""
if
with_limits
and
self
.
query
.
low_mark
==
self
.
query
.
high_mark
:
return
''
,
()
# The `do_offset` flag indicates whether we need to construct
# the SQL needed to use limit/offset with Oracle.
do_offset
=
with_limits
and
(
self
.
query
.
high_mark
is
not
None
...
...
django/db/models/sql/compiler.py
Dosyayı görüntüle @
ed1bcf05
...
...
@@ -367,8 +367,6 @@ class SQLCompiler(object):
refcounts_before
=
self
.
query
.
alias_refcount
.
copy
()
try
:
extra_select
,
order_by
,
group_by
=
self
.
pre_sql_setup
()
if
with_limits
and
self
.
query
.
low_mark
==
self
.
query
.
high_mark
:
return
''
,
()
distinct_fields
=
self
.
get_distinct
()
# This must come after 'select', 'ordering', and 'distinct' -- see
...
...
django/db/models/sql/query.py
Dosyayı görüntüle @
ed1bcf05
...
...
@@ -1550,6 +1550,9 @@ class Query(object):
else
:
self
.
low_mark
=
self
.
low_mark
+
low
if
self
.
low_mark
==
self
.
high_mark
:
self
.
set_empty
()
def
clear_limits
(
self
):
"""
Clears any existing limits.
...
...
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