Menu

Commit and Rollback

2006-08-22
2012-09-19
  • jdmackiewicz

    jdmackiewicz - 2006-08-22

    I am working on a project where I have to keep a MySQL database in sync with an Informix database. The existing Informix database uses 4gl programs to interact with the database. I am able to modify the existing 4gl programs to call python scripts using (MySQLdb) to update MySQL. The problem I am running into is with commits and rollbacks. Since I will need to call python scripts multiple times from different parts of the old 4gl codes. I am wondering if there is a way to use rollbacks. I'm not sure how to reference db_cursors from different instances of python scripts so that I can run rollbacks on the correct set of transactions.

    If anyone knows this is possible please let me know.

    Thanks,

    JD Mackiewicz

     
    • Andy Dustman

      Andy Dustman - 2006-08-22

      rollback() is a connection object method.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.