Internal alpha release.
Incompatible Change: The method
MySQLConnection.set_charset()
has been removed and replaced byMySQLConnection.set_charset_collation()
to simplify setting and retrieving character set and collation information. TheMySQLConnection
propertiescollation
andcharset
are now read-only. (Bug #14260052)Incompatible Change: The
MySQLConnection
methodsunset_client_flag()
andset_client_flag()
have been removed. Use theset_client_flags()
method instead using a sequence. (Bug #14259996)-
Incompatible Change: Fixed
MySQLConnection.cmd_query()
to raise an error when the operation has multiple statements. We introduced a new methodMySQLConnection.cmd_query_iter()
which needs to be used when multiple statements send to the MySQL server. It returns a generator object to iterate through results.When executing single statements,
MySQLCursor.execute()
will always returnNone
. You can use theMySQLCursor
propertywith_rows
to check whether a result could have rows or not.MySQLCursor.execute()
returns a generator object with which you can iterate over results when executing multiple statements.The
MySQLCursor.next_resultset()
became obsolete and was removed and theMySQLCursor.next_proc_result()
method has been renamed toMySQLCursor.proc_results()
, which returns a generator object. TheMySQLCursor.with_rows
property can be used to check if a result could return rows. Themultiple_resultset.py
example script shows how to go through results produced by sending multiple statements. (Bug #14208326) Fixed
MySQLCursor.executemany()
whenINSERT
statements use theON DUPLICATE KEY
clause with a function such asVALUES()
. (Bug #14259954)Fixed unit testing on the Microsoft Windows platform. (Bug #14236592)
Fixed converting a
datetime.time
to a MySQL type using Python 2.4 and 2.5. Thestrftime()
function has no support for the%f
mark in those Python versions. (Bug #14231941)Fixed
cursor.CursorBase
attributesdescription
,lastrowid
androwcount
to be read-only properties. (Bug #14231160)Fixed
MySQLConnection.cmd_query()
and other methods so they check first whether there are unread results. (Bug #14184643)