[BioPython] Bug in BioSQL/Loader.py

Peter biopython at maubp.freeserve.co.uk
Thu Nov 8 15:39:13 UTC 2007


Eric Gibert wrote:
> Dear all,
> 
> ... in DBUtils.py line 34: MySQL is now using lastrowid and no longer 
insert_id()
> 
> Correction as per below:
> ---------------------------------------------
> class Mysql_dbutils(Generic_dbutils):
>     def last_id(self, cursor, table):
>         return cursor.lastrowid        # <-- EG original command: cursor.insert_id()
> _dbutils["MySQLdb"] = Mysql_dbutils
> -----------------------------------------------

Sounds like the one of the issues raised on bug 2390
http://bugzilla.open-bio.org/show_bug.cgi?id=2390

Nice to have my suggested fix confirmed; I'll probably check that in 
tonight.  The auto-commit thing also looks relevant too...

Peter



More information about the Biopython mailing list