[sqlalchemy] Re: Rollback behaviour in 0.4.8

2009-05-06 Thread naktinis
Oh.. Yes, sorry. That's my mistake, because testing engine created MyISAM tables (they were default) and it broke the tests. Thanks! On May 7, 12:39 am, "Michael Bayer" wrote: > are you using MyISAM tables ? > > naktinis wrote: > > > I have a session created this way: > > Session = scoped_sessi

[sqlalchemy] Re: Rollback behaviour in 0.4.8

2009-05-06 Thread Michael Bayer
are you using MyISAM tables ? naktinis wrote: > > I have a session created this way: > Session = scoped_session(sessionmaker(autoflush=True, > transactional=True)) > > Then I have this piece of code: > print User.query().count() > u = User(name='Jim') > Session.flush([u]) > print User.query().cou