10bet网址
MySQL Connector/Python Release Notes
Related Documentation Download these Release Notes
PDF (US Ltr)- 263.6Kb
PDF (A4)- 264.9Kb
HTML Download (TGZ)- 67.5Kb
HTML Download (Zip)- 144.2Kb


MySQL Connector/Python Release Notes/MySQL连接器/ Python 1的变化。1/ Changes in MySQL Connector/Python 1.1.5 (2014-01-31, General Availability)

MySQL连接器/ Python 1的变化。1.5 (2014-01-31, General Availability)

Functionality Added or Changed

  • Connector/Python is now compatible with Django 1.6. (Bug #17857712)

  • utf8mb4is now recognized as a valid character set. (Bug #70596, Bug #17780576)

  • Thestart_transaction()method now supports areadonlyargument. This argument can beTrueto start the transaction inREAD ONLYmode orFalseto start it inREAD WRITEmode. Ifreadonlyis omitted, the server's default access mode is used. For details about transaction access mode, see the description for theSTART TRANSACTIONstatement atSTART 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)

Bugs Fixed

  • 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 apool_reset_sessionargument toconnect()when requesting a pooled connection:

    cnx = mysql.connector.connect(pool_reset_session=False,...)

    (Bug #18040042)

  • An incorrectly handled error inMySQLProtocol.parse_column_count()method could lead to a misreported error message. (Bug #17958420)

  • executemany()failed withINSERT INTO ... SELECTstatements. (Bug #70529, Bug #17826833)