Release Notes for MariaDB Connector/Python 1.1.4

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.4 was released on 2022-08-10. This release is of General Availability (GA) maturity.

Notable Changes

  • The reconnect keyword argument is supported for the mariadb.connect() method. (CONPY-217)

    • The reconnect keyword argument can be set to True or False

    • When the reconnect keyword argument is set for a connection, the value is used to initialize the auto_reconnect attribute for the connection.

Issues Fixed

  • When the cursor.execute() method is called with None as the parameter, an error is raised. (CONPY-218)

    • Starting with this release, the cursor.execute() method accepts None as a parameter.

  • When the connection.cursor() method is called with the named_tuple or dictionary parameters, the cursor.fetchall() method does not return results with the specified data structure. (CONPY-214)

    • Starting with this release, the named_tuple or dictionary parameters affect the data structure returned by the cursor.fetchall() method.

    • When connection.cursor(named_tuple=True) is specified, the results are returned in a namedtuple object, and the data can be accessed using the following syntax:

      results[ROW_NUM].FIELD_NAME
      
    • When connection.cursor(dictionary=True) is specified, the results are returned in a dict object, and the data can be accessed using the following syntax:

      results[ROW_NUM]["FIELD_NAME"]
      
  • When the converter keyword argument is specified for the mariadb.connect() method, the cursor.fetchall() method does not convert the fields to the specified types and returns the original types instead. (CONPY-213)