#88 Module does not conform with spec on autocommit

MySQLdb-1.1
closed
MySQLdb (285)
5
2012-09-19
2004-06-17
Bob Kline
No

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.

Discussion

  • Andy Dustman

    Andy Dustman - 2004-06-18

    Logged In: YES
    user_id=71372

    Plan is to change this in 1.1/1.2, but leave current
    behavior in 1.0.

     
  • Andy Dustman

    Andy Dustman - 2004-09-06

    Logged In: YES
    user_id=71372

    This has been fixed in the current CVS tree.

     
  • Andy Dustman

    Andy Dustman - 2004-09-06

    Logged In: YES
    user_id=71372

    Fixed in 1.1.2.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks