#30586: Django 2.2 Compatibility with PyMySQL
-------------------------------------+-------------------------------------
Reporter: Suthat | Owner: nobody
Ronglong |
Type: Bug | Status: new
Component: Database | Version: 2.2
layer (models, ORM) |
Severity: Normal | Keywords: PyMySQL
Triage Stage: | Has patch: 1
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Regarding unexpected return result on using PyMySQL with Django 2.2.x:
Django 2.1.x used to cast every query into "str" like below
https://github.com/django/django/blob/stable/2.1.x/django/db/backends/mysql/operations.py#L134
Django 2.2.x they changed the code by using query.decode instead of
force_text method.
https://github.com/django/django/blob/stable/2.2.x/django/db/backends/mysql/operations.py#L140
Reference as a proposed solution is discussed right here:
https://github.com/PyMySQL/PyMySQL/issues/790#issuecomment-484201388
Thanks.
--
Ticket URL: <https://code.djangoproject.com/ticket/30586>
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/049.4fea7585ff4be26924a1c39ea8719664%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.