Changeset 2649 for pykota

Show
Ignore:
Timestamp:
02/03/06 19:37:13 (19 years ago)
Author:
matt
Message:

Need autocommit on for INNODB tables

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storages/mysqlstorage.py

    r2646 r2649  
    4646        self.tool.logdebug("Trying to open database (host=%s, port=%s, dbname=%s, user=%s)..." % (host, port, dbname, user)) 
    4747        self.database = MySQLdb.connect(host=host, port=port, db=dbname, user=user, passwd=passwd) 
     48        self.database.autocommit(1) 
    4849        self.cursor = self.database.cursor() 
    4950        self.closed = 0