Hi, I have been using session with autocommit=True and autoflush=False for a while now. I'm pretty happy with this but now I find something that I cannot understand: a session with dirty set full, after a begin() is empty, but no update is issued. How can that be possible? (And yes! session.dirty is *really* dirty, I changed a float value)
In [57]: session.autocommit Out[57]: True In [58]: session.autoflush Out[58]: False In [59]: session.dirty Out[59]: IdentitySet([<VALCUCINE - A008>, <VALCUCINE - Abcd>, <DESALTO OMA srl - divano>, <ABET Laminati - top 01>]) In [60]: session.begin() 2009-12-15 09:40:32,727 INFO sqlalchemy.engine.base.Engine.0x...0e8c BEGIN 2009-12-15 09:40:32,739 INFO sqlalchemy.engine.base.Engine.0x...0e8c COMMIT Out[60]: <sqlalchemy.orm.session.SessionTransaction object at 0xa0f852c> In [61]: session.dirty Out[61]: IdentitySet([]) Where have the modification gone? TIA sandro *:-) -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.