On Feb 11, 2008, at 10:20 AM, maxi wrote:

>
>
> Thanks for your replay,
>
>> The easiest in this case is to use query.populate_existing():
>>
>> sess.query(Person).populate_existing().filter_by().all()
>>
>> however, this method is only available in 0.4.
>
> How work this ?
> This method  - populate_existing() - re-read from database ?
>

it sees an instance already in the Session, and overwrites its data.   
any pending changes on the object are lost.


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