Thanks On Jul 9, 7:44 pm, Michael Bayer <[EMAIL PROTECTED]> wrote: > On Jul 9, 2007, at 3:40 AM, mc wrote: > > > > > I have a followup question: > > > You posted above a function for retrieving the values by using another > > select query. > > The fact is that regardless of the differences between SQLalchemy > > 0.3.6 to 0.3.9, MySQL returns the value of the non-primary-key > > autoincrement column, otherwise 0.3.6 would not have that data without > > querying the MySQL server again (at least there is no query according > > to the debug log). > > Will there be another method to get it? > > result.cursor.lastrowid, as always > > this might change to "result.lastrowid" in 0.4 since the cursor is > closed immediately after INSERT
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---