MySQL Connector/Python Release Notes

4.3 Changes in MySQL Connector/Python 2.1.6 (2017-04-18, General Availability)

Functionality Added or Changed

  • Compatibility issues with Django 1.9 were corrected. (Bug #25726671)

  • Methods for filtering time and datetime fields were changed in Django 1.9 from value_to_db_datetime to adapt_datetimefield_value and from value_to_db_time to adapt_timefield_value. Proxy methods with the previous names were added to Connector/Python ensure compatibility. Thanks to Brian Tyndall for the patch. (Bug #25349918, Bug #84410)

  • Connector/Python added support for a database backend API change introduced in Django 1.9 for the bulk_insert_sql method. Thanks to Brian Tyndall for the patch. (Bug #25349897, Bug #84408)

  • An ssl-cipher option is now supported for specifying the encryption cipher for encrypted connections. (Bug #22545879, Bug #78186)

Bugs Fixed

  • The fix for Bug #22529828 caused Python 2.7 to be unable to insert binary data. (Bug #25589496, Bug #85100)

    References: This issue is a regression of: Bug #22529828.

  • Some SQL statements that worked using pure Python failed with the Connector/Python C Extension enabled. (Bug #25558885)

  • Connector/Python produced no error or warning if the server certificate was expired. (Bug #25397650)

  • If an exception reset the underlying session, connections in a connection pooled could become unavailable to the pool. (Bug #25383644, Bug #84476)

  • Extra encapsulation was removed from the get_constraints method for the foreign_key parameter. Thanks to Brian Tyndall for the patch. (Bug #25349912, Bug #84409)

  • Loading the world sample database worked using pure Python but failed with the Connector/Python C Extension enabled. (Bug #22476689, Bug #79780)

  • If the output from the mysql_config --include command included more than one directory, the C Extension failed to compile. (Bug #20736339, Bug #76350)