#26824: MySQL query with CONVERT_TZ is not properly formated
-------------------------------------+-------------------------------------
Reporter: truhlik | Owner: nobody
Type: Bug | Status: closed
Component: Database layer | Version: 1.9
(models, ORM) |
Severity: Normal | Resolution: invalid
Keywords: mysql, timezone | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by charettes):
* resolution: needsinfo => invalid
Comment:
As mentioned by Tim above `str(queryset.query)` returns
[https://github.com/django/django/blob/6d61ec0e1a4eb5768be5add9e1c44c89dacbfa7e/django/db/models/sql/query.py#L95-L96
a representation of the query] and not what is actually executed as the
escaping part is left to the backend which escapes parameters such as the
timezone name.
Please re-open if you can provide an actual failing testcase or at least a
traceback that does not rely on executing a representation of
`Queryset.query`.
--
Ticket URL: <https://code.djangoproject.com/ticket/26824#comment:8>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.3f8361da9fcd23f0add0293a80a8345f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.