#30469: Boolean False becomes NULL with recent mysql-connector-python
-------------------------------------+-------------------------------------
     Reporter:  Johannes la Poutre   |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  2.2
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  invalid
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Dima German):

 A workaround for this bug: add {{{ 'use_pure': True }}} to database
 OPTIONS.
 This forces mysql-connector-python to use pure python connection instead
 of C extension, where I believe the bug lives.

 {{{
 DATABASES = {
     'default': {
         'ENGINE': 'mysql.connector.django',
         'NAME': os.environ['MYSQL_DATABASE'],
         'USER': os.environ['MYSQL_USER'],
         'PASSWORD': os.environ['MYSQL_PASSWORD'],
         'OPTIONS': {
             'use_pure': True,
     }
 }
 }}}

 P.S. the bug in the mysql bugtracker:
 https://bugs.mysql.com/bug.php?id=92001

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30469#comment:5>
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/063.6392c8db09e1af0a5ba2b3e6e91a34d8%40djangoproject.com.

Reply via email to