Documentation Home
MySQL Connector/Python Release Notes
Related Documentation Download these Release Notes
PDF (US Ltr) - 327.1Kb
PDF (A4) - 328.2Kb


MySQL Connector/Python Release Notes  /  Changes in MySQL Connector/Python 8.x  /  Changes in MySQL Connector/Python 8.0.17 (2019-07-22, General Availability)

Changes in MySQL Connector/Python 8.0.17 (2019-07-22, General Availability)

Functionality Added or Changed

  • Prepared statement support was added to the C extension's (use_pure=False) implementation. (Bug #27364973, Bug #21670979, Bug #77780, WL #12085)

  • Added CONTRIBUTING.rst and replaced README.txt with README.rst.

    Thanks to Daniël van Eeden for the README.rst patch. (Bug #20862622, Bug #76643, WL #12735)

  • Added connection attribute support for the classic connector; new connection attributes can be passed in with the "conn_attrs" connection argument. Thanks to Daniël van Eeden for the patch. Example usage:

    test_config = {'user': 'myuser', 'port':3306, 'host':'localhost'}
    test_config['conn_attrs'] = {"foo": "bar", "_baz": "qux", "hello": "world"}
    _ = connect(**test_config)

    Default connection attributes are set for both the pure and c-ext implementations, but these attributes are different due to limitations of the client library.

    For general information about connection attributes, see Performance Schema Connection Attribute Tables. (Bug #16562193, Bug #21072758, Bug #77003)

  • Document fields containing arrays can now be indexed by setting array to true in an index fields definition. (WL #12227)

  • Added support for the OVERLAPS and NOT OVERLAPS operators; which is equivalent to the SQL JSON_OVERLAPS() function.

    These binary operators are used with a general "expression operator expression" syntax; and the expressions return a JSON array or object. Example usage: ["A", "B", "C"] overlaps $.field (WL #12737)

  • Added support for the utf8mb4_0900_bin collation added in MySQL Server 8.0.17. (WL #13155)

Bugs Fixed

  • Executing a Collection.find() without first fetching results would raise an AttributeError with an unclear message. (Bug #29327931)

  • An error was generated when used with the combination of MySQL 5.7, Python 3, and having the C-extension enabled. (Bug #28568665)