Jason, in the contrived example I came up with and posted, your solution worked but not in my tests. I tried both expires_on_commit=False and Session.remove() before the drop with no luck. Thanks for the suggestion
On Jul 8, 10:03 am, jason kirtland <j...@discorporate.us> wrote: > Your scoped session still has an active connection, which is blocking > the drop. Call session.remove() before the drop, or configure the > session with expires_on_commit=False to not issue SELECTs to fetch > object state after the final commit(). -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.