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
eecd42ea
Kaydet (Commit)
eecd42ea
authored
Haz 04, 2015
tarafından
Shai Berger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed datetime_cast_sql, which is never overridden or used anywhere in Django.
Thanks Tim Graham for review.
üst
aabb5842
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
9 deletions
+6
-9
operations.py
django/db/backends/base/operations.py
+0
-9
1.9.txt
docs/releases/1.9.txt
+6
-0
No files found.
django/db/backends/base/operations.py
Dosyayı görüntüle @
eecd42ea
...
...
@@ -90,15 +90,6 @@ class BaseDatabaseOperations(object):
"""
raise
NotImplementedError
(
'subclasses of BaseDatabaseOperations may require a datetrunc_sql() method'
)
def
datetime_cast_sql
(
self
):
"""
Returns the SQL necessary to cast a datetime value so that it will be
retrieved as a Python datetime object instead of a string.
This SQL should include a '
%
s' in place of the field's name.
"""
return
"
%
s"
def
datetime_cast_date_sql
(
self
,
field_name
,
tzname
):
"""
Returns the SQL necessary to cast a datetime value to date value.
...
...
docs/releases/1.9.txt
Dosyayı görüntüle @
eecd42ea
...
...
@@ -541,6 +541,12 @@ Database backend API
:class:`~django.db.models.TimeField`, and may be needed by third-party
database backends.
* The ``DatabaseOperations.datetime_cast_sql()`` method (not to be confused
with ``DatabaseOperations.datetime_cast_date_sql()`` mentioned above)
has been removed. This method served to format dates on Oracle long
before 1.0, but hasn't been overridden by any core backend in years
and hasn't been called anywhere in Django's code or tests.
Default settings that were tuples are now lists
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
...
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