Incompatible Change: Python 2 code was changed to use new features introduced in Python 2.6 and 2.7. Some examples:
print()is used as a function, not a statement.
Exceptions are handled using the
inkeyword is used instead of the
This change means that MySQL Connector/Python 1.1 does not work with versions of Python older than 2.6.
Connector/Python was updated with error information from MySQL 5.7.1. (Bug #16896702)
mysql.connector.__version_info__now are available to provide MySQL Connector/Python version information in a more standard, Pythonic manner.
MySQLConnectionobjects now support an
in_transactionproperty that returns
Falseto indicate whether a transaction is active for the connection.
MySQLConnectionobjects now support a
start_transaction()method to begin a transaction. This method accepts arguments indicating whether to use a consistent snapshot and which transaction isolation level to use:
False. The default
None, and permitted values are
'REPEATABLE READ', and
Connector/Python supports a new
MySQLCursorPreparedclass that enables execution of prepared SQL statements using the binary client/server protocol. For details, see cursor.MySQLCursorPrepared Class.