#30224: Mysql Datetime value is string instead of datetime object
-------------------------------------+-------------------------------------
Reporter: Martin Kuhn | Owner: Rohit Jha
Type: Bug | Status: assigned
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution:
Keywords: Mysql | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Sarah Boyce):
As long as the PR covers the issue as you all understand it, I can confirm
that this is issue is resolved for MySQL 8.0.22+ but still exists from
8.0.11-8.0.21.
In MySQL 8.0.21
{{{
FAIL [0.010s]: test_filtered_aggregate_datetime
(aggregation.test_filter_argument.FilteredAggregateTests.test_filtered_aggregate_datetime)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tests/django/tests/aggregation/test_filter_argument.py", line
223, in test_filtered_aggregate_datetime
self.assertEqual(
AssertionError: {'max_filtered_pubdate': '2008-06-23'} !=
{'max_filtered_pubdate': datetime.date(2008, 6, 23)}
- {'max_filtered_pubdate': '2008-06-23'}
+ {'max_filtered_pubdate': datetime.date(2008, 6, 23)}
}}}
but from MySQL 8.0.22+
{{{
.
----------------------------------------------------------------------
Ran 1 test in 0.023s
OK
}}}
(happy days)
--
Ticket URL: <https://code.djangoproject.com/ticket/30224#comment:24>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018ea9d1ca14-793c14f8-acbb-42a0-a5cb-d773803bd2a3-000000%40eu-central-1.amazonses.com.