- changed status to resolved
exception on rollback if no transaction begun, threadlocal engine
from sqlalchemy import *
engine = create_engine('sqlite:///s.db', strategy='threadlocal', echo=True)
engine.rollback()
Comments (4)
-
reporter -
Account Deleted - changed status to open
- removed status
Hi Michael, thanks for looking at this. I've downloaded the lastest package from http://hg.sqlalchemy.org/sqlalchemy/archive/rel_0_6.tar.gz as you mentioned in http://groups.google.com/group/sqlalchemy/browse_thread/thread/921836e8961e7003
but the error persists.
engine = create_engine('sqlite:///s.db', strategy='threadlocal', echo=True) engine.rollback() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/site-packages/SQLAlchemy-0.6.6dev-py2.7.egg/sqlalchemy/engine/threadlocal.py", line 86, in rollback if not self._connections.trans: AttributeError: 'thread._local' object has no attribute 'trans'
Ralph
-
reporter - changed status to resolved
you're right. additional tests + check in 6e4515948f87a2299461003c709393b68453d2d0 b99c5bf6392d4fbcc5ed6b7154bad82cb86e853f
-
reporter - removed milestone
Removing milestone: 0.6.6 (automated comment)
- Log in to comment
tip 8df4dc438583cb3a6b7bb67ce86d8264d4ee4282 0.6 branch d43ab796082da0a64dcb55113d15f05a3d48e7f9