Connector/Python is now compatible with Django 1.6. (Bug #17857712)
utf8mb4
is now recognized as a valid character set. (Bug #70596, Bug #17780576)The
start_transaction()
method now supports areadonly
argument. This argument can beTrue
to start the transaction inREAD ONLY
mode orFalse
to start it inREAD WRITE
mode. Ifreadonly
is omitted, the server's default access mode is used. For details about transaction access mode, see the description for theSTART TRANSACTION
statement at START TRANSACTION, COMMIT, and ROLLBACK Statements. If the server is older than MySQL 5.6.5, it does not support setting the access mode and Connector/Python raises aValueError
. (Bug #70545, Bug #17573172)
-
When using connection pooling, a connection returned to the pool was not reset, so session variables retained their values. Now these variables are reset by re-authenticating the user when the connection is returned to the pool. To disable this behavior, pass a
pool_reset_session
argument toconnect()
when requesting a pooled connection:cnx = mysql.connector.connect(pool_reset_session=False,...)
(Bug #18040042)
An incorrectly handled error in
MySQLProtocol.parse_column_count()
method could lead to a misreported error message. (Bug #17958420)executemany()
failed withINSERT INTO ... SELECT
statements. (Bug #70529, Bug #17826833)