The DB API 2.0 spec
(http://www.python.org/peps/pep-2049.html) says: "Note
that if the database supports an auto-commit feature,
this must be initially off." The MySQLdb module does
not turn off autocommit when a connection is
established to a version of MySQL which supports
transactions. Confirmed with MySQLdb 1.0.0 and MySQL
4.0.16-standard. When this is fixed there should
probably be an environment or build option to preserve
the old non-conforming behavior to allow installations
a way to avoid breaking code which ignores the spec
without fixing their code.
Log in to post a comment.