mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Removed datetime_cast_sql, which is never overridden or used anywhere in Django.
Thanks Tim Graham for review.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user