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
reconnect
keyword argument is supported for themariadb.connect()
method. (CONPY-217)The
reconnect
keyword argument can be set toTrue
orFalse
When the
reconnect
keyword argument is set for a connection, the value is used to initialize theauto_reconnect
attribute for the connection.
Issues Fixed
When the
cursor.execute()
method is called withNone
as the parameter, an error is raised. (CONPY-218)Starting with this release, the
cursor.execute()
method acceptsNone
as a parameter.
When the
connection.cursor()
method is called with thenamed_tuple
ordictionary
parameters, thecursor.fetchall()
method does not return results with the specified data structure. (CONPY-214)Starting with this release, the
named_tuple
ordictionary
parameters affect the data structure returned by thecursor.fetchall()
method.When
connection.cursor(named_tuple=True)
is specified, the results are returned in anamedtuple
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 adict
object, and the data can be accessed using the following syntax:results[ROW_NUM]["FIELD_NAME"]
When the
converter
keyword 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)