Release Notes for MariaDB Connector/Python 1.1.4
This page is part of MariaDB's Documentation.
The parent of this page is: Release Notes for MariaDB Connector/Python 1.1
Topics on this page:
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
reconnectkeyword argument is supported for themariadb.connect()method. (CONPY-217)The
reconnectkeyword argument can be set toTrueorFalseWhen the
reconnectkeyword argument is set for a connection, the value is used to initialize theauto_reconnectattribute for the connection.
Issues Fixed
When the
cursor.execute()method is called withNoneas the parameter, an error is raised. (CONPY-218)Starting with this release, the
cursor.execute()method acceptsNoneas a parameter.
When the
connection.cursor()method is called with thenamed_tupleordictionaryparameters, thecursor.fetchall()method does not return results with the specified data structure. (CONPY-214)Starting with this release, the
named_tupleordictionaryparameters affect the data structure returned by thecursor.fetchall()method.When
connection.cursor(named_tuple=True)is specified, the results are returned in anamedtupleobject, and the data can be accessed using the following syntax:results[ROW_NUM].FIELD_NAMEWhen
connection.cursor(dictionary=True)is specified, the results are returned in adictobject, and the data can be accessed using the following syntax:results[ROW_NUM]["FIELD_NAME"]
When the
converterkeyword argument is specified for themariadb.connect()method, thecursor.fetchall()method does not convert the fields to the specified types and returns the original types instead. (CONPY-213)
