#44 c.lastrowid in MySQLConnection

closed-accepted
nobody
MySQL (29)
5
2005-02-21
2004-10-04
No

In the _queryInsertID() method of MySQLConnection for
0.6, the line:

id = c.insert_id()

was switched to the following:

id = c.lastrowid

While this is necessary for the newer versions of
MySQLdb, it breaks older versions. I attached a patch
which allows both older and newer versions of MySQLdb
to work.

Discussion

  • John A. Barbuto

    John A. Barbuto - 2004-10-04

    SO patch

     
  • Ian Bicking

    Ian Bicking - 2005-02-21
    • status: open --> closed-accepted
     

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

Sign up for the SourceForge newsletter:





No, thanks