Release Notes for MariaDB Connector/Python 1.1.7

Overview

MariaDB Connector/Python is a native MariaDB connector for building Python applications on MariaDB. It is compliant with Python DB API 2.0 (PEP-249). It is written in Python and C and uses MariaDB Connector/C.

MariaDB Connector/Python 1.1.7 was released on 2023-07-10. This release is of General Availability (GA) maturity.

Notable Changes

  • When creating a connection, the tls_version connection attribute can be specified to select a version of the TLS protocol. (CONPY-253)

    • For example, to specify the connection attribute to the mariadb.connect() method:

      conn = mariadb.connect(
         host="192.0.2.1",
         port=3306,
         user="db_user",
         password="USER_PASSWORD",
         ssl_ca="/path/to/ca_chain.pem",
         tls_version="TLSv1.3"
      )
      

Issues Fixed

  • When a numeric column has the ZEROFILL option set, a ValueError exception is raised for values that have 2 or more leading zeros. (CONPY-258)

  • When the pool.get_connection() method is called and all connections are in use, None is returned. (CONPY-255)

    • Starting with this release, a PoolError exception is raised in this scenario to better match the behavior of other Python database drivers.

  • When the pool.get_connection() method is called, the same connection can be returned twice. (CONPY-256)