Hi,

It's related to 
http://groups.google.be/group/sqlalchemy/browse_thread/thread/3b63f3fc74af268c

I'm using SqlAlchemy 0.3.10, Python 2.5, Firebird 2.0 all on Windows.

I've a master-detail structure, the problem is when I do changes into
detail, this changes aren't updated in database.

Example:

users->addresses

#retrive user id = 1
usr1 = session.query(User).filter_by(id==1).one()

#Do changes in address id = 3
for a in usr1.addresses:
     if a.id == 3:
          addr = a  #this is not necesary, is only for test purpose

addr.email_address = '[EMAIL PROTECTED]'


#Test for address correctly change in list
for a in usr1.addresses:
    print a.id, a.email_address


#Save changes into database
session.save_or_update(usr1)
session.flush()

The problem here is what that changes aren't saved into database.

Any tip?






















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