On Nov 12, 2012, at 5:33 PM, Torsten Landschoff wrote:
>
> BTW, I found one offender that breaks running database upgrades with my
> locking schemes:
>
> from sqlalchemy import *
> from sqlalchemy.pool import *
>
> engine = create_engine("sqlite:////home/torsten/some.db",
> poolclass=AssertionPool)
> conn = engine.connect()
> metadata = MetaData(conn, reflect=True)
>
> This results in the following backtrace here:
>
> raise AssertionError("connection is already checked out" + suffix)
> AssertionError: connection is already checked out at:
> File "demo.py", line 5, in <module>
> conn = engine.connect()
>
> I would have expected it to reflect using the connection passed to the
> MetaData constructor.
if so then that's a bug, added http://www.sqlalchemy.org/trac/ticket/2604 to
take a look at that.
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected].
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.