Re: [sqlalchemy] MetaData().reflect() fails on engine with non-default isolation level

2019-07-08 Thread Mike Bayer
On Mon, Jul 8, 2019, at 6:08 AM, Gunnar Þór Magnússon wrote: > Hello, > > Some legacy code at work that I don't fully understand (and whose authors are > all long gone) does the following to eventually insert some values into the > table it gets: > > meta =

[sqlalchemy] MetaData().reflect() fails on engine with non-default isolation level

2019-07-08 Thread Gunnar Þór Magnússon
Hello, Some legacy code at work that I don't fully understand (and whose authors are all long gone) does the following to eventually insert some values into the table it gets: meta = sqlalchemy.MetaData(bind=session.get_bind()) meta.reflect() table = sqlalchemy.Table(TableName.__tablename__,