#28794: tx_isolation deprecation warning with MySQL 5.7.20+
-------------------------------------+-------------------------------------
     Reporter:  JC                   |                    Owner:  Sergey
         Type:                       |  Fedoseev
  Cleanup/optimization               |                   Status:  closed
    Component:  Database layer       |                  Version:  2.0
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  fixed
     Keywords:  mysql                |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Tim Graham):

 I think the warning comes from MySQL itself and it's passed on through
 MySQLdb/mysqlclient. This may do the trick to suppress it:
 {{{
 from warnings import filterwarnings
 import MySQLdb as Database
 filterwarnings('ignore', category=Database.Warning)
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28794#comment:10>
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/067.98bfaeb10da8d6fb96d685e16816f9e0%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to