Hi,

I am using sa 0.5b2 under python 2.5.

Should the following code commit myobj.

engine = create_engine(appconfig.dburi, strategy='threadlocal')
Session = scoped_session(sessionmaker(bind=engine, autoflush=True, 
autocommit=True))

sess = Session()
engine.begin()
sess.add(myobj)
engine.commit()

I am noticing that it does not. However, if I do

sess = Session()
sess.begin()
sess.add(myobj)
sess.commit()

it works.

Am I missing something ?

Thanks,

Huy



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to