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
c3bbf1fd
Kaydet (Commit)
c3bbf1fd
authored
Kas 30, 2018
tarafından
Nick Pope
Kaydeden (comit)
Tim Graham
Kas 30, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Refs #28643 -- Skipped ATan2() workaround on SpatiaLite 5+.
üst
0d724ce9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
math.py
django/db/models/functions/math.py
+4
-2
No files found.
django/db/models/functions/math.py
Dosyayı görüntüle @
c3bbf1fd
...
...
@@ -55,10 +55,12 @@ class ATan2(OutputFieldMixin, Func):
arity
=
2
def
as_sqlite
(
self
,
compiler
,
connection
,
**
extra_context
):
if
not
getattr
(
connection
.
ops
,
'spatialite'
,
False
)
or
connection
.
ops
.
spatial_version
<
(
4
,
3
,
0
):
if
not
getattr
(
connection
.
ops
,
'spatialite'
,
False
)
or
not
(
(
4
,
3
,
0
)
<=
connection
.
ops
.
spatial_version
<
(
5
,
0
,
0
)
):
return
self
.
as_sql
(
compiler
,
connection
)
# This function is usually ATan2(y, x), returning the inverse tangent
# of y / x, but it's ATan2(x, y) on SpatiaLite
4.3+
.
# of y / x, but it's ATan2(x, y) on SpatiaLite
>= 4.3.0, < 5.0.0
.
# Cast integers to float to avoid inconsistent/buggy behavior if the
# arguments are mixed between integer and float or decimal.
# https://www.gaia-gis.it/fossil/libspatialite/tktview?name=0f72cca3a2
...
...
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