Skip to content

Commit

Permalink
Remove obsolete DatabaseOperations.adapt_datetimefield/timefield_value()
Browse files Browse the repository at this point in the history
  • Loading branch information
timgraham committed Apr 9, 2024
1 parent df2f099 commit e2962b3
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions django_snowflake/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,18 +112,6 @@ def convert_uuidfield_value(self, value, expression, connection):
value = uuid.UUID(value)
return value

def adapt_datetimefield_value(self, value):
# Work around a bug in Django: https://code.djangoproject.com/ticket/33229
if hasattr(value, 'resolve_expression'):
return value
return super().adapt_datetimefield_value(value)

def adapt_timefield_value(self, value):
# Work around a bug in Django: https://code.djangoproject.com/ticket/33229
if hasattr(value, 'resolve_expression'):
return value
return super().adapt_timefield_value(value)

def explain_query_prefix(self, format=None, **options):
if format is None:
format = 'TABULAR'
Expand Down

0 comments on commit e2962b3

Please sign in to comment.